Skip to content

Commit 35194b1

Browse files
committed
Allow a message for the Interrupt exception from SIGINT
1 parent c27de64 commit 35194b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/ruby/core/exception/interrupt_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
sleep
3030
rescue Interrupt => e
3131
e.signo.should == Signal.list["INT"]
32-
e.signm.should == ""
32+
["", "Interrupt"].should.include?(e.message)
3333
end
3434
end
3535
end

0 commit comments

Comments
 (0)