diff options
author | danielsdeleo <dan@getchef.com> | 2014-04-22 19:20:47 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-04-24 09:49:52 -0700 |
commit | bfc0b5a5f5e7cc5255a2bc20b50cc2599ec4d7f6 (patch) | |
tree | 675a7deadde55166f332fdc8ed84fff964e1a848 /spec/unit/application_spec.rb | |
parent | a84653e5f57109e3ac153ef686c9230da19da21d (diff) | |
download | chef-bfc0b5a5f5e7cc5255a2bc20b50cc2599ec4d7f6.tar.gz |
Prevent tests from overriding rspec's trap handler
Otherwise you cannot ctrl-C the tests.
Diffstat (limited to 'spec/unit/application_spec.rb')
-rw-r--r-- | spec/unit/application_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index 6110a8a3c5..90e855e889 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -24,6 +24,7 @@ describe Chef::Application do ARGV.clear Chef::Log.logger = Logger.new(StringIO.new) @app = Chef::Application.new + @app.stub(:trap) Dir.stub(:chdir).and_return(0) @app.stub(:reconfigure) Chef::Log.init(STDERR) |