summaryrefslogtreecommitdiff
path: root/spec/ruby/core/exception/signo_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/exception/signo_spec.rb')
-rw-r--r--spec/ruby/core/exception/signo_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/ruby/core/exception/signo_spec.rb b/spec/ruby/core/exception/signo_spec.rb
index 08c85274ca..46e79a8daf 100644
--- a/spec/ruby/core/exception/signo_spec.rb
+++ b/spec/ruby/core/exception/signo_spec.rb
@@ -1,5 +1,9 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe "SignalException#signo" do
- it "needs to be reviewed for spec completeness"
+ it "returns the signal number" do
+ -> { Process.kill(:TERM, Process.pid) }.should.raise(SignalException) { |e|
+ e.signo.should == Signal.list['TERM']
+ }
+ end
end