diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dff2450dd8..9fd8e935c7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -218,9 +218,11 @@ RSpec.configure do |config| end # raise if anyone commits any test to CI with :focus set on it - config.before(:example, :focus) do - raise "This example was committed with `:focus` and should not have been" - end if ENV["CI"] + if ENV["CI"] + config.before(:example, :focus) do + raise "This example was committed with `:focus` and should not have been" + end + end config.before(:suite) do ARGV.clear |