diff options
Diffstat (limited to 'spec/rubyspec/core/hash/shared/comparison.rb')
-rw-r--r-- | spec/rubyspec/core/hash/shared/comparison.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/rubyspec/core/hash/shared/comparison.rb b/spec/rubyspec/core/hash/shared/comparison.rb deleted file mode 100644 index bbb9bfd6ad..0000000000 --- a/spec/rubyspec/core/hash/shared/comparison.rb +++ /dev/null @@ -1,15 +0,0 @@ -describe :hash_comparison, shared: true do - it "raises a TypeError if the right operand is not a hash" do - lambda { { a: 1 }.send(@method, 1) }.should raise_error(TypeError) - lambda { { a: 1 }.send(@method, nil) }.should raise_error(TypeError) - lambda { { a: 1 }.send(@method, []) }.should raise_error(TypeError) - end - - it "returns false if both hashes have the same keys but different values" do - h1 = { a: 1 } - h2 = { a: 2 } - - h1.send(@method, h2).should be_false - h2.send(@method, h1).should be_false - end -end |