1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Split in two spec examples

This commit is contained in:
Benoit Daloze 2019-07-31 11:06:54 +02:00
parent eab6c534ad
commit e432f5dafd

View file

@ -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')