rspec-rails
Rails 3 + Rspec 2: Validation failed: Email has already been taken
I have 2 models, User and Bucket. User has_many Buckets and a Bucket belongs_to a User. In factories.rb, I have:[详细]
2023-02-23 07:33 分类:问答RSpec 1.3.3 Rails 2.3.9 Webrat 0.7.3 "undefined method `assign`"
My spec require \'spec_helper\' describe \'user_sessions/new.html.erb\' do let (:user_session) { mock_model(UserSession).as_null_object }[详细]
2023-02-20 16:59 分类:问答Tracing memory leak in Ruby on Rails 3 / Postgres / Apache Passenger application
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[详细]
2023-02-18 09:52 分类:问答Rails 3 Tutorial Chapter 11 "Validation failed: Email has already been taken" error
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)))[详细]
2023-02-17 08:09 分类:问答How to call a Rails named route when testing controllers with RSpec?
I want to test the permalink action in my articles controller, which is using a named route (/permalink/terms-of-use):[详细]
2023-02-17 06:35 分类:问答Issues implementing Rspec with Rails3 from tutorial
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[详细]
2023-02-15 20:12 分类:问答Rspec stubing view for anonymous controller
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[详细]
2023-02-14 12:15 分类:问答How to replace Rspec's ENV["RAILS_ENV"] ||= 'test' deprecated in Rails 3.0?
I\'开发者_StackOverflowm using rails (3.0.4) and rspec-rails (2.5.0). When I runrails generate rspec:install[详细]
2023-02-09 16:38 分类:问答Working with mongodb from Java
I have launch mongodb server: [demas@arch.local.net][~]% mongod --dbpatmongod --dbpath /home/demas/temp/[详细]
2022-12-27 03:12 分类:问答