summaryrefslogtreecommitdiffstats
path: root/spec/unit/application
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-05-19 10:29:51 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-05-19 10:46:51 -0700
commit3682025065c431c750894dd9872f18a1f0b073ab (patch)
treef6ff6083755b6e3414c86010bd413086f656e8d3 /spec/unit/application
parentfc0add14616f9ddf54ba2dd449bfd0acc03d7ed7 (diff)
downloadpuppet-3682025065c431c750894dd9872f18a1f0b073ab.tar.gz
puppet-3682025065c431c750894dd9872f18a1f0b073ab.tar.xz
puppet-3682025065c431c750894dd9872f18a1f0b073ab.zip
maint: move trap call to Signal so we can stub it for specs
Also removed some monkey patching on Signal that would have theoretically done this without having to explicitly call trap on Signal in order to stub it, but it's not working. This allows us to ctrl+c (send SIGINT) in the middle of a spec run. Paired-with: Josh Cooper <josh@puppetlabs.com>
Diffstat (limited to 'spec/unit/application')
-rwxr-xr-xspec/unit/application/device_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application/device_spec.rb b/spec/unit/application/device_spec.rb
index df8cd3eaf..542bdd838 100755
--- a/spec/unit/application/device_spec.rb
+++ b/spec/unit/application/device_spec.rb
@@ -40,7 +40,7 @@ describe Puppet::Application::Device do
end
it "should catch INT" do
- @device.expects(:trap).with { |arg,block| arg == :INT }
+ Signal.expects(:trap).with { |arg,block| arg == :INT }
@device.preinit
end