Skip to content

Commit

Permalink
Configure RSpec to allow running rspec --only-failures
Browse files Browse the repository at this point in the history
When I make changes and break stuff, I like running `rspec
--only-failures` to focus on fixing what I broke. This allows RSpec to
keep track of what's currently failing, so that this flag can actually
be used.
  • Loading branch information
deivid-rodriguez committed Sep 2, 2022
1 parent 1490819 commit 6d6c343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ vendor
coverage/
.ruby-gemset
.tool-versions
.rspec_status
1 change: 1 addition & 0 deletions common/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
config.order = :rand
config.mock_with(:rspec) { |mocks| mocks.verify_partial_doubles = true }
config.raise_errors_for_deprecations!
config.example_status_persistence_file_path = ".rspec_status"

config.after do
# Ensure we clear any cached timeouts between tests
Expand Down

0 comments on commit 6d6c343

Please sign in to comment.