diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-12-04 15:22:19 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-12-04 15:22:19 -0800 |
commit | 652c77324da9b2df658b21837b0e74feff3a2e78 (patch) | |
tree | d370f8a2301651c7c3e0fa3a6e1d0a2dbd19c21c | |
parent | 9512049d82f172d799f6ca2d3063f9396deb27f8 (diff) | |
download | chef-652c77324da9b2df658b21837b0e74feff3a2e78.tar.gz |
raise if we see a test with :focus set on it in CIlcg/remove-focus
-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 |