Skip to content

Commit 6b58998

Browse files
committed
Allow us to use fit, fdescribe, :focus etc.
I find it useful sometimes to just slap an `f` in front of `it` or `describe` when I want to run just a few specs.
1 parent fc8422a commit 6b58998

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)