summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/shared/index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/shared/index.rb')
-rw-r--r--spec/ruby/core/array/shared/index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/array/shared/index.rb b/spec/ruby/core/array/shared/index.rb
index a4a0adbab6..cc6d6cfb5b 100644
--- a/spec/ruby/core/array/shared/index.rb
+++ b/spec/ruby/core/array/shared/index.rb
@@ -33,7 +33,7 @@ describe :array_index, shared: true do
describe "given no argument and no block" do
it "produces an Enumerator" do
- [].send(@method).should be_an_instance_of(Enumerator)
+ [].send(@method).should.instance_of?(Enumerator)
end
end