Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit eb6368e

Browse files
committed
Add example_status_persistence_file_path generated spec_helper.rb
1 parent aa650db commit eb6368e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/rspec/core/project_initializer/spec/spec_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
config.filter_run :focus
5151
config.run_all_when_everything_filtered = true
5252
53+
# Allows RSpec to persist some state between runs in order to support
54+
# the `--only-failures` and `--next-failure` CLI options. We recommend
55+
# you configure your source control system to ignore this file.
56+
config.example_status_persistence_file_path = "spec/examples.txt"
57+
5358
# Limits the available syntax to the non-monkey patched syntax that is
5459
# recommended. For more details, see:
5560
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax

0 commit comments

Comments
 (0)