diff options
Diffstat (limited to 'spec/ruby/core/struct/hash_spec.rb')
-rw-r--r-- | spec/ruby/core/struct/hash_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/struct/hash_spec.rb b/spec/ruby/core/struct/hash_spec.rb index d3c95fbe56..53361eb7a9 100644 --- a/spec/ruby/core/struct/hash_spec.rb +++ b/spec/ruby/core/struct/hash_spec.rb @@ -56,5 +56,9 @@ describe "Struct#hash" do # See the Struct#eql? specs end + it "returns different hashes for different struct classes" do + Struct.new(:x).new(1).hash.should != Struct.new(:y).new(1).hash + end + it_behaves_like :struct_accessor, :hash end |