Skip to content

Commit

Permalink
specs: Add example_status_persistence_file_path
Browse files Browse the repository at this point in the history
This allows us to use rspec's new --only-failures and --next-failure
commands.

See https://rspec.info/blog/2015/06/rspec-3-3-has-been-released/
  • Loading branch information
jhawthorn committed Jun 30, 2015
1 parent a26541a commit 9597166
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ spree_dev
spree_test
testapp
**/spec/dummy
**/spec/examples.txt
tmp
public/google_base.xml
public/template_google_base.xml
Expand Down
2 changes: 2 additions & 0 deletions api/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@
end

config.use_transactional_fixtures = true

config.example_status_persistence_file_path = "./spec/examples.txt"
end
2 changes: 2 additions & 0 deletions backend/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@
config.extend WithModel

config.fail_fast = ENV['FAIL_FAST'] || false

config.example_status_persistence_file_path = "./spec/examples.txt"
end
2 changes: 2 additions & 0 deletions core/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@
config.extend WithModel
config.filter_run focus: true
config.run_all_when_everything_filtered = true

config.example_status_persistence_file_path = "./spec/examples.txt"
end
2 changes: 2 additions & 0 deletions frontend/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,6 @@
config.include Paperclip::Shoulda::Matchers

config.fail_fast = ENV['FAIL_FAST'] || false

config.example_status_persistence_file_path = "./spec/examples.txt"
end
2 changes: 2 additions & 0 deletions sample/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@

config.include FactoryGirl::Syntax::Methods
config.fail_fast = ENV['FAIL_FAST'] || false

config.example_status_persistence_file_path = "./spec/examples.txt"
end

0 comments on commit 9597166

Please sign in to comment.