summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/hash_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/hash_spec.rb')
-rw-r--r--spec/ruby/core/array/hash_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/array/hash_spec.rb b/spec/ruby/core/array/hash_spec.rb
index 8392253ae4..3b7b6d5bed 100644
--- a/spec/ruby/core/array/hash_spec.rb
+++ b/spec/ruby/core/array/hash_spec.rb
@@ -7,16 +7,16 @@ describe "Array#hash" do
[[], [1, 2, 3]].each do |ary|
ary.hash.should == ary.dup.hash
- ary.hash.should be_an_instance_of(Fixnum)
+ ary.hash.should.instance_of?(Integer)
end
end
it "properly handles recursive arrays" do
empty = ArraySpecs.empty_recursive_array
- -> { empty.hash }.should_not raise_error
+ -> { empty.hash }.should_not.raise
array = ArraySpecs.recursive_array
- -> { array.hash }.should_not raise_error
+ -> { array.hash }.should_not.raise
end
it "returns the same hash for equal recursive arrays" do
@@ -74,7 +74,7 @@ describe "Array#hash" do
a.fill 'a', 0..3
b = %w|a a a a|
a.hash.should == b.hash
- a.should eql(b)
+ a.should.eql?(b)
end
it "produces different hashes for nested arrays with different values and empty terminator" do
/ruby.git/commit/ext/win32ole?h=ruby_2_5&id=08d0611477a4b5b23f04e9002fb5ab343a61dfa5'>* ext/win32ole/win32ole.c (fole_initialize): fix typo. thanks to Gray Wolf. suke [Feature #13828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2017-08-26* ext/win32ole/win32ole.c (fole_initialize): support licensed COM server. ↵suke Thanks to Gray Wolf. [Feature :#13828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2017-05-26remove extra call to OleInitializenobu [Fix GH-1629] Signed-off-by: Matt Wrock <matt@mattwrock.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e