rspec
How to set up autotest to rerun only failing rspec examples
My impression of how autotest is intended to work (based on the cucumber github wiki, and other stuff online) is that it should rerun red examples until they pass. My problem is that it reruns all exa[详细]
2023-04-13 08:55 分类:问答How can I test signed or permanent cookies with rspec?
I can write cookies to the request fine with: request.cookies[\'foo\'] = \'bar\' But none of these work:[详细]
2023-04-13 05:25 分类:问答Using Capybara to test pure JavaScript application
I\'m having some problems using Sinatra with Capybara. I want to test a pure javascript application. It\'s just a plain index.html that is being served by Sinatra.[详细]
2023-04-13 05:04 分类:问答What's the difference between a fixture and a factory in my unit tests?
A little confused here, what is the difference between a factory 开发者_Go百科and a fixture? So I\'m using factory_girl, when I create an object using the factory, should it be persisted to the db?Or[详细]
2023-04-13 04:01 分类:问答RSpec Stubbing: return in a sequence
I know the following things work: returning a parameter subject.should_receive(:get_user_choice){ |choices| choices.to_a[0] }[详细]
2023-04-12 23:23 分类:问答Multiple Calls to Visit with RSpec and Capybara
I have a requests spec that makes multiple calls to visit within a single block (visits \'/sessions/new\' and visits \'/admin\'). This results in:[详细]
2023-04-12 18:57 分类:问答Expected CSS "Home" to Return Something RSpec issue
I am trying to get my test suite working and am having some issues. #home_controller_spec.rb require \'spec_helper\'[详细]
2023-04-12 17:55 分类:问答With Rspec, run test for each of several options?
I want to run a given suite of tests several times - once as each of the basic types 开发者_C百科of system users. (It tests the various features that should be shared by them). More generally, I often[详细]
2023-04-12 15:51 分类:问答How to test a custom validator?
I have the following validator: # Source: http://guides.rubyonrails.org/active_record_validations_callbacks.html#custom-validators[详细]
2023-04-12 08:55 分类:问答rails Could not find devise-1.4.6 in any of the sources (trying to run rspec tests)
I try to run spec tests and I get bundle exec rake spec Could not find selenium-webdriver-2.6.0 in any of the sources[详细]
2023-04-12 08:28 分类:问答