summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/hash/index_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/ruby/core/hash/index_spec.rb b/spec/ruby/core/hash/index_spec.rb
index 2b52c69949..009e222f12 100644
--- a/spec/ruby/core/hash/index_spec.rb
+++ b/spec/ruby/core/hash/index_spec.rb
@@ -2,6 +2,8 @@ require_relative '../../spec_helper'
require_relative 'fixtures/classes'
require_relative 'shared/index'
-describe "Hash#index" do
- it_behaves_like :hash_index, :index
+ruby_version_is ''...'2.8' do
+ describe "Hash#index" do
+ it_behaves_like :hash_index, :index
+ end
end