mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@8d74d49
This commit is contained in:
parent
c940397116
commit
d80e44deec
157 changed files with 581 additions and 543 deletions
|
@ -99,11 +99,4 @@ end
|
|||
|
||||
describe "Hash#merge!" do
|
||||
it_behaves_like :hash_update, :merge!
|
||||
|
||||
it "does not raise an exception if changing the value of an existing key during iteration" do
|
||||
hash = {1 => 2, 3 => 4, 5 => 6}
|
||||
hash2 = {1 => :foo, 3 => :bar}
|
||||
hash.each { hash.merge!(hash2) }
|
||||
hash.should == {1 => :foo, 3 => :bar, 5 => 6}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue