diff options
Diffstat (limited to 'spec/ruby/core/range/hash_spec.rb')
| -rw-r--r-- | spec/ruby/core/range/hash_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/core/range/hash_spec.rb b/spec/ruby/core/range/hash_spec.rb index dcac523487..087f5d6de8 100644 --- a/spec/ruby/core/range/hash_spec.rb +++ b/spec/ruby/core/range/hash_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "Range#hash" do it "is provided" do @@ -14,11 +14,11 @@ describe "Range#hash" do (0..10).hash.should_not == (0...10).hash end - it "generates a Fixnum for the hash value" do - (0..0).hash.should be_an_instance_of(Fixnum) - (0..1).hash.should be_an_instance_of(Fixnum) - (0...10).hash.should be_an_instance_of(Fixnum) - (0..10).hash.should be_an_instance_of(Fixnum) + it "generates an Integer for the hash value" do + (0..0).hash.should.instance_of?(Integer) + (0..1).hash.should.instance_of?(Integer) + (0...10).hash.should.instance_of?(Integer) + (0..10).hash.should.instance_of?(Integer) end end |
