summaryrefslogtreecommitdiff
path: root/spec/unit/application/solo_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/solo_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/solo_spec.rb')
-rw-r--r--spec/unit/application/solo_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/application/solo_spec.rb b/spec/unit/application/solo_spec.rb
index d2f8b93169..dfc54db4b0 100644
--- a/spec/unit/application/solo_spec.rb
+++ b/spec/unit/application/solo_spec.rb
@@ -19,10 +19,12 @@ require 'spec_helper'
describe Chef::Application::Solo do
before do
+ Kernel.stub(:trap).and_return(:ok)
@app = Chef::Application::Solo.new
@app.stub(:configure_opt_parser).and_return(true)
@app.stub(:configure_chef).and_return(true)
@app.stub(:configure_logging).and_return(true)
+ @app.stub(:trap)
Chef::Config[:recipe_url] = false
Chef::Config[:json_attribs] = false
Chef::Config[:solo] = true