rails (3.0.1) fakefs (0.2.1) paperclip (2.3.4) rspec (2.0.1) I am testing my model with rspec. Since this is a test, I want to prevent any file creations under the public directory as paperclip norma
I\'ve a view helper method which generates a url by looking at request.domain and request.port_string.
I\'m using Factory Girl/Rspec2/Rails 3. In factories.rb, I have: Factory.define :user do |user| user.name\'Some guy\'
I\'m learning RSpec 2 with Rails 3 and while it\'s been going along quite nicely so far, I\'m having a problem testing the helper link_to_unless_current in a view. What I\'ve been trying to do is use
How do I turn off transactional fixtures for only one spec (or Steak scenario) with RSpec 2? I tried some things found on the web without any success.
Created a new app with rails generate new_app -T and ran rails generate rspec:install. $ rails generate controller Test foo bar
I\'m trying to Factory a Post associated with a Vote. So that Post.votes would generate the Vote\'s that are associated with it.
I am trying to mock out the session hash for a controller like so: it \"finds using the session[:company_id]\" do
I\'m writing an rspec scenario thats failing with: (#<User:0x1056904f0>).update_attributes(#<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x105623648>)
I was hoping someone would spot why this wouldn\'t work. I am getting an error thats being called because the attributes I specify with开发者_开发问答 Factory_Girl are not being applied to the stub b