rspec-rails
Testing with Rspec, NiftyAuthentication
I\'m using Ryan Bates\'s nifty:authentication, and starting testing with Rspec. Fought with this for weeks, and still don\'t understand what\'s happening.[详细]
2023-03-27 04:11 分类:问答unable to load rspec generator in rails 2.3.5
i am working on rails 2.3.5 where i want to us Rspec for testing purpose. I have installed rspec gem but not able to list rspec in generator\'s list. I am referring https://github.com/rspec/rspec-rail[详细]
2023-03-24 15:30 分类:问答Is the @routes be created after "before(:all)" and before "before(:each)"?
In the开发者_StackOverflow社区 rails project, when i write some controller\'s spec like this: describe "POST \'create\'" do[详细]
2023-03-23 17:20 分类:问答Capybara does not find the text that is actually there!
In my actual project I use the following gems for testing: capybara from git://github.com/jnicklas/capybara.git in revision 6641fddcfc337a3ddaa84ac59272e884090332c3[详细]
2023-03-23 13:39 分类:问答RSpec-rails. The rendered method
The render开发者_开发技巧ed method in RSpec-rails\' views examples is used for getting a rendered view template.[详细]
2023-03-22 14:27 分类:问答railstutorial.org - rspec failed but in browser everything is OK
I am trying to follow Rails Tutorial and I have a failed rspec but in browser the appworks as needed. That is when I am signed in (in browser) and go to \"http://localhost:3000/users/1/edit\" this pag[详细]
2023-03-22 06:00 分类:问答Creating test objects in RSpec with FactoryGirl fails with Nested Attributes
I have a Workout model that has many PerformedExercises, which has many PeformedSets. I can\'t get it to build an object in my test and I am not sure if it\'s SQLite3, or something else (it works fine[详细]
2023-03-22 04:12 分类:问答How to ignore rescue_from in ApplicationController in rspec tests?
By default, Cucumber ignores rescue_from in your ApplicationController and reports any exceptions directly.This is accomplished by the following line in the Cucumber env.rb file[详细]
2023-03-20 01:09 分类:问答Testing has_many association with RSpec
I\'m trying to test the Hour model with RSpec, namely the class method \'find_days_with_no_hours\' that behaves like a scope. Business has_many Hours associated through STI.[详细]
2023-03-17 05:53 分类:问答How to Update an Attribute in Testing Model Using RSpec
I\'m trapped on one spec in RSpec. How can I update a model\'s attribute to make it nil? Is better to validate under update controller spec?[详细]
2023-03-17 04:16 分类:问答