summaryrefslogtreecommitdiffstats
path: root/spec/monkey_patches/disable_signal_trap.rb
Commit message (Collapse)AuthorAgeFilesLines
* maint: move trap call to Signal so we can stub it for specsMatt Robinson2011-05-191-5/+0
| | | | | | | | | | 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>
* maint: better disabling of Signal#trap in our tests.Daniel Pittman2011-04-211-0/+5
We tried to stub out the trap method on signal to stop our application level signal handlers getting in the way, but it kept not sticking. Now, instead, we just stub it out globally at the module level in our spec helper. Less fun, but more effective. Until rspec starts installing a signal handler, at least. :)