21 Oct 2011
Rspec 2 introduce a very efficient way to test only one test or one test suit, it's filter_run.
You should first add filter_run in rspec/spec_helper.rb
config.filter_run :focus => true
Then you can tell rspec to test only one test you are focused by
it "should focus now", :focus => true do ... end
rspec will only test this spec, :focus => true can be applied on describe/context as well.
One problem is that if there is no :focus => true on your tests, rspec will do nothing, but most of time we are...Read More