summaryrefslogtreecommitdiff
path: root/spec/unit/application_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2014-04-22 19:20:47 -0700
committerdanielsdeleo <dan@getchef.com>2014-04-24 09:49:52 -0700
commitbfc0b5a5f5e7cc5255a2bc20b50cc2599ec4d7f6 (patch)
tree675a7deadde55166f332fdc8ed84fff964e1a848 /spec/unit/application_spec.rb
parenta84653e5f57109e3ac153ef686c9230da19da21d (diff)
downloadchef-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.rb1
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)