mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@519df35
This commit is contained in:
parent
31bb66a19d
commit
1c938a72aa
83 changed files with 1416 additions and 308 deletions
|
@ -128,7 +128,7 @@ describe "Hash literal" do
|
|||
{a: 1, **obj, c: 3}.should == {a:1, b: 2, c: 3, d: 4}
|
||||
end
|
||||
|
||||
ruby_version_is "0"..."2.7" do
|
||||
ruby_version_is ""..."2.7" do
|
||||
it "raises a TypeError if any splatted elements keys are not symbols" do
|
||||
h = {1 => 2, b: 3}
|
||||
-> { {a: 1, **h} }.should raise_error(TypeError)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue