diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/hash/constructor_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/hash/constructor_spec.rb b/spec/ruby/core/hash/constructor_spec.rb index 55681c2a7c..4e02a955bd 100644 --- a/spec/ruby/core/hash/constructor_spec.rb +++ b/spec/ruby/core/hash/constructor_spec.rb @@ -45,10 +45,10 @@ describe "Hash.[]" do it "ignores elements that are not arrays" do -> { Hash[[:a]].should == {} - }.should complain(/ignoring wrong elements/) + }.should raise_error(ArgumentError) -> { Hash[[:nil]].should == {} - }.should complain(/ignoring wrong elements/) + }.should raise_error(ArgumentError) end it "raises an ArgumentError for arrays of more than 2 elements" do |