summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-07-31 11:06:54 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-07-31 11:06:54 +0200
commite432f5dafd3ec777e552631a2d3f14887b0562df (patch)
treed439fc04c586960c6193c48e9f395083240f6878 /spec/ruby/core
parenteab6c534adb381b81291e871cd57c957cf786503 (diff)
Split in two spec examples
Diffstat (limited to 'spec/ruby/core')
-rw-r--r--spec/ruby/core/hash/rehash_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/core/hash/rehash_spec.rb b/spec/ruby/core/hash/rehash_spec.rb
index 1bf4753f4e..587935fc43 100644
--- a/spec/ruby/core/hash/rehash_spec.rb
+++ b/spec/ruby/core/hash/rehash_spec.rb
@@ -2,7 +2,7 @@ require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "Hash#rehash" do
- it "reorganizes the hash by recomputing all key hash codes" do
+ it "reorganizes the Hash by recomputing all key hash codes" do
k1 = Object.new
k2 = Object.new
def k1.hash; 0; end
@@ -23,7 +23,9 @@ describe "Hash#rehash" do
h.rehash.should equal(h)
h.key?(k1).should == true
h[k1].should == :v1
+ end
+ it "calls #hash for each key" do
k1 = mock('k1')
k2 = mock('k2')
v1 = mock('v1')