diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7b3b61cad0..7691d88ff3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -204,6 +204,11 @@ RSpec.configure do |config| ENV['CHEF_TREAT_DEPRECATION_WARNINGS_AS_ERRORS'] = "1" 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'] + config.before(:suite) do ARGV.clear end |