Skip to content

Commit 04e21e3

Browse files
authored
Merge pull request #1079 from rubocop-hq/focus-in-our-specs
Allow us to use `fit`, `fdescribe`, `:focus` etc.
2 parents fc8422a + 6b58998 commit 04e21e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ module SpecHelper
2828

2929
config.order = :random
3030

31+
# Run focused tests with `fdescribe`, `fit`, `:focus` etc.
32+
config.filter_run focus: true
33+
config.run_all_when_everything_filtered = true
34+
3135
# Forbid RSpec from monkey patching any of our objects
3236
config.disable_monkey_patching!
3337

0 commit comments

Comments
 (0)