summaryrefslogtreecommitdiff
path: root/spec/ruby/library/set/sortedset/select_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/set/sortedset/select_spec.rb')
-rw-r--r--spec/ruby/library/set/sortedset/select_spec.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/ruby/library/set/sortedset/select_spec.rb b/spec/ruby/library/set/sortedset/select_spec.rb
index 68326cd02c..fc4c15ee4d 100644
--- a/spec/ruby/library/set/sortedset/select_spec.rb
+++ b/spec/ruby/library/set/sortedset/select_spec.rb
@@ -1,7 +1,10 @@
require_relative '../../../spec_helper'
-require_relative 'shared/select'
-require 'set'
-describe "SortedSet#select!" do
- it_behaves_like :sorted_set_select_bang, :select!
+ruby_version_is ""..."3.0" do
+ require_relative 'shared/select'
+ require 'set'
+
+ describe "SortedSet#select!" do
+ it_behaves_like :sorted_set_select_bang, :select!
+ end
end