Skip to content

Commit

Permalink
Update to RSpec 3.3 in suspenders apps
Browse files Browse the repository at this point in the history
RSpec 3.3 added some very handy commands for filtering examples. With
the addition of the status persistence file configuration we can now:

* run `rspec --only-failures` to re-run only the examples that failed.
* run `rspec --next-failure` to re-run only the first failing test from
  your previous run. If that passes it will run the successive failures
  until one of them fails again

Additionally, rspec 3.3 includes stable random ordering (even when you
add new examples), the ability to bisect failures when debugging
ordering-dependent failures, better failure output...

http://rspec.info/blog/2015/06/rspec-3-3-has-been-released/
  • Loading branch information
derekprior committed Jul 10, 2015
1 parent f34ab51 commit 3597986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Gemfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ group :development, :test do
gem "dotenv-rails"
gem "factory_girl_rails"
gem "pry-rails"
gem "rspec-rails", "~> 3.1.0"
gem "rspec-rails", "~> 3.3.0"
end

group :test do
Expand Down
1 change: 1 addition & 0 deletions templates/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
mocks.verify_partial_doubles = true
end

config.example_status_persistence_file_path = "tmp/examples.txt"
config.order = :random
end

Expand Down

0 comments on commit 3597986

Please sign in to comment.