]> cat aescling's git repositories - mastodon.git/commitdiff
Store rspec statuses in .cache/rspec (#12427)
authorDimitri Merejkowsky <dmerejkowsky@users.noreply.github.com>
Tue, 19 Nov 2019 16:22:40 +0000 (17:22 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 19 Nov 2019 16:22:40 +0000 (17:22 +0100)
This allows using rspec with `--only-failures`

.cache/.gitkeep [new file with mode: 0644]
spec/spec_helper.rb

diff --git a/.cache/.gitkeep b/.cache/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
index 45ba1bbd9bd976ecdc4b59b6814f0832b82be51f..e57349cc8901b56889eab78f326dcb671fdf26c1 100644 (file)
@@ -12,6 +12,7 @@ end
 gc_counter = -1
 
 RSpec.configure do |config|
+  config.example_status_persistence_file_path = ".cache/rspec"
   config.expect_with :rspec do |expectations|
     expectations.include_chain_clauses_in_custom_matcher_descriptions = true
   end