summaryrefslogtreecommitdiff
path: root/spec/ruby/core/hash/filter_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/hash/filter_spec.rb')
-rw-r--r--spec/ruby/core/hash/filter_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/ruby/core/hash/filter_spec.rb b/spec/ruby/core/hash/filter_spec.rb
index 46c7bea8e8..bf9102cd6a 100644
--- a/spec/ruby/core/hash/filter_spec.rb
+++ b/spec/ruby/core/hash/filter_spec.rb
@@ -1,10 +1,12 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/select', __FILE__)
-describe "Hash#filter" do
- it_behaves_like :hash_select, :filter
-end
+ruby_version_is "2.6" do
+ describe "Hash#filter" do
+ it_behaves_like :hash_select, :filter
+ end
-describe "Hash#filter!" do
- it_behaves_like :hash_select!, :filter!
+ describe "Hash#filter!" do
+ it_behaves_like :hash_select!, :filter!
+ end
end