mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@9a501a8
This commit is contained in:
parent
d070523e7b
commit
a66bc2c011
41 changed files with 699 additions and 639 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue