1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-05-28 22:41:48 +02:00
parent d070523e7b
commit a66bc2c011
41 changed files with 699 additions and 639 deletions

View file

@ -65,4 +65,19 @@ describe "Exception#backtrace" do
e.backtrace[0].should == "backtrace first"
end
end
it "returns the same array after duping" do
begin
raise
rescue RuntimeError => err
bt = err.backtrace
err.dup.backtrace.should equal(bt)
new_bt = ['hi']
err.set_backtrace new_bt
err.backtrace.should == new_bt
err.dup.backtrace.should equal(new_bt)
end
end
end