mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@0fe33ac
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0f989b87a0
commit
a34db218ad
162 changed files with 1267 additions and 621 deletions
|
@ -20,7 +20,7 @@ describe "Interrupt.new" do
|
|||
end
|
||||
end
|
||||
|
||||
describe "rescueing Interrupt" do
|
||||
describe "rescuing Interrupt" do
|
||||
before do
|
||||
@original_sigint_proc = Signal.trap(:INT, :SIG_DFL)
|
||||
end
|
||||
|
|
|
@ -60,7 +60,7 @@ describe "SignalException.new" do
|
|||
end
|
||||
end
|
||||
|
||||
describe "rescueing SignalException" do
|
||||
describe "rescuing SignalException" do
|
||||
it "raises a SignalException when sent a signal" do
|
||||
begin
|
||||
Process.kill :TERM, Process.pid
|
||||
|
|
|
@ -47,4 +47,10 @@ describe "StandardError" do
|
|||
it "is a superclass of ZeroDivisionError" do
|
||||
StandardError.should be_ancestor_of(ZeroDivisionError)
|
||||
end
|
||||
|
||||
ruby_version_is '2.5' do
|
||||
it "is a superclass of FrozenError" do
|
||||
StandardError.should be_ancestor_of(FrozenError)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue