summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/index_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/index_spec.rb')
-rw-r--r--spec/ruby/core/array/index_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/ruby/core/array/index_spec.rb b/spec/ruby/core/array/index_spec.rb
index 3acb7d0ef3..b66cb6eb53 100644
--- a/spec/ruby/core/array/index_spec.rb
+++ b/spec/ruby/core/array/index_spec.rb
@@ -1,6 +1,7 @@
require_relative '../../spec_helper'
-require_relative 'shared/index'
describe "Array#index" do
- it_behaves_like :array_index, :index
+ it "is an alias of Array#find_index" do
+ Array.instance_method(:index).should == Array.instance_method(:find_index)
+ end
end