Monday, February 14, 2011

how to stop Rspec run on first failure :rspec tip

  • Edit  "spec/spec_helper.rb" with:
    RSpec.configure {|config| config.fail_fast = true}
     
    Set  the fail_fast option to tell RSpec to stop the run on first failure.