diff options
Diffstat (limited to 'spec/ruby/core/signal/signame_spec.rb')
-rw-r--r-- | spec/ruby/core/signal/signame_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/core/signal/signame_spec.rb b/spec/ruby/core/signal/signame_spec.rb index 1874a67933..503e6af64b 100644 --- a/spec/ruby/core/signal/signame_spec.rb +++ b/spec/ruby/core/signal/signame_spec.rb @@ -20,4 +20,11 @@ describe "Signal.signame" do it "raises a TypeError when the passed argument can't be coerced to Integer" do lambda { Signal.signame("hello") }.should raise_error(TypeError) end + + platform_is_not :windows do + it "the original should take precendence over alias when looked up by number" do + Signal.signame(Signal.list["ABRT"]).should == "ABRT" + Signal.signame(Signal.list["CHLD"]).should == "CHLD" + end + end end |