diff options
Diffstat (limited to 'spec/ruby/library/set/sortedset/empty_spec.rb')
-rw-r--r-- | spec/ruby/library/set/sortedset/empty_spec.rb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/spec/ruby/library/set/sortedset/empty_spec.rb b/spec/ruby/library/set/sortedset/empty_spec.rb index deb3b567fb..2e52c3e81a 100644 --- a/spec/ruby/library/set/sortedset/empty_spec.rb +++ b/spec/ruby/library/set/sortedset/empty_spec.rb @@ -1,10 +1,13 @@ require_relative '../../../spec_helper' -require 'set' -describe "SortedSet#empty?" do - it "returns true if self is empty" do - SortedSet[].empty?.should be_true - SortedSet[1].empty?.should be_false - SortedSet[1,2,3].empty?.should be_false +ruby_version_is ""..."3.0" do + require 'set' + + describe "SortedSet#empty?" do + it "returns true if self is empty" do + SortedSet[].empty?.should be_true + SortedSet[1].empty?.should be_false + SortedSet[1,2,3].empty?.should be_false + end end end |