diff options
Diffstat (limited to 'spec/ruby/core/exception/signo_spec.rb')
| -rw-r--r-- | spec/ruby/core/exception/signo_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/core/exception/signo_spec.rb b/spec/ruby/core/exception/signo_spec.rb new file mode 100644 index 0000000000..46e79a8daf --- /dev/null +++ b/spec/ruby/core/exception/signo_spec.rb @@ -0,0 +1,9 @@ +require_relative '../../spec_helper' + +describe "SignalException#signo" do + it "returns the signal number" do + -> { Process.kill(:TERM, Process.pid) }.should.raise(SignalException) { |e| + e.signo.should == Signal.list['TERM'] + } + end +end |
