I have 2 models, User and Bucket. User has_many Buckets and a Bucket belongs_to a User. In factories.rb, I have:
My spec require \'spec_helper\' describe \'user_sessions/new.html.erb\' do let (:user_session) { mock_model(UserSession).as_null_object }
Hello, we have recently updated an application to Rails 3.0.4 (3.0.5 on online devel server). Most of the changes from 2.3.10 to 3.0.4 were due to obsolete or outdated plugins and gems, and were solv
My trouble arose in Chapter 11 of the Ruby on Rails Tutorial here. I was seeing this rspec error: Failure/Error: :user => Factory(:user, :email => Factory.next(:email)))
I want to test the permalink action in my articles controller, which is using a named route (/permalink/terms-of-use):
I am a newbie to Rails 3 and Rspec. Kindly excuse my being a novice. I am trying to implement RSpec with Rails 3. I am using Rails 3.0.3 with Ruby 1.9.2 on Ubuntu 10.04 os. I am using rspec 2.5 gem a
I\'m trying to test a method on the application controller that will be used as a before filter. To do this I have setup an anonymous controller in my test with the before filter applied to ensure tha
I\'开发者_StackOverflowm using rails (3.0.4) and rspec-rails (2.5.0). When I runrails generate rspec:install
I have launch mongodb server: [demas@arch.local.net][~]% mongod --dbpatmongod --dbpath /home/demas/temp/