ruby-changes:63900
From: Hiroshi <ko1@a...>
Date: Fri, 4 Dec 2020 19:44:58 +0900 (JST)
Subject: [ruby-changes:63900] e666bd1c5a (master): Skip subclass spec with SortedSet
https://git.ruby-lang.org/ruby.git/commit/?id=e666bd1c5a From e666bd1c5a595ab64faee00b3744b3bfa591acb1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Fri, 4 Dec 2020 19:36:30 +0900 Subject: Skip subclass spec with SortedSet diff --git a/spec/ruby/library/set/enumerable/to_set_spec.rb b/spec/ruby/library/set/enumerable/to_set_spec.rb index 0f5504f..3790d8d 100644 --- a/spec/ruby/library/set/enumerable/to_set_spec.rb +++ b/spec/ruby/library/set/enumerable/to_set_spec.rb @@ -7,10 +7,12 @@ describe "Enumerable#to_set" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/set/enumerable/to_set_spec.rb#L7 {a: 1, b: 2}.to_set.should == Set[[:b, 2], [:a, 1]] end - it "allows passing an alternate class for Set" do - sorted_set = [1, 2, 3].to_set(SortedSet) - sorted_set.should == SortedSet[1, 2, 3] - sorted_set.instance_of?(SortedSet).should == true + ruby_version_is ''...'3.0' do + it "allows passing an alternate class for Set" do + sorted_set = [1, 2, 3].to_set(SortedSet) + sorted_set.should == SortedSet[1, 2, 3] + sorted_set.instance_of?(SortedSet).should == true + end end it "passes down passed blocks" do -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/