summaryrefslogtreecommitdiff
path: root/spec/ruby/library/set
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-05-03 12:28:29 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-05-03 12:28:29 +0200
commit5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39 (patch)
treee1694f5a4a5558884b1b8f3890b186793e5e982f /spec/ruby/library/set
parentf646d20aaeb8f02bcd3d0c5c3f5a372da654502a (diff)
Update to ruby/spec@032ee74
Diffstat (limited to 'spec/ruby/library/set')
-rw-r--r--spec/ruby/library/set/compare_by_identity_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/library/set/compare_by_identity_spec.rb b/spec/ruby/library/set/compare_by_identity_spec.rb
index 28fe91309f..9ed1602189 100644
--- a/spec/ruby/library/set/compare_by_identity_spec.rb
+++ b/spec/ruby/library/set/compare_by_identity_spec.rb
@@ -42,7 +42,7 @@ describe "Set#compare_by_identity" do
set = Set.new.compare_by_identity
set << :foo
set.compare_by_identity.should equal(set)
- set.compare_by_identity?.should == true
+ set.should.compare_by_identity?
set.to_a.should == [:foo]
end
@@ -124,20 +124,20 @@ end
describe "Set#compare_by_identity?" do
it "returns false by default" do
- Set.new.compare_by_identity?.should == false
+ Set.new.should_not.compare_by_identity?
end
it "returns true once #compare_by_identity has been invoked on self" do
set = Set.new
set.compare_by_identity
- set.compare_by_identity?.should == true
+ set.should.compare_by_identity?
end
it "returns true when called multiple times on the same set" do
set = Set.new
set.compare_by_identity
- set.compare_by_identity?.should == true
- set.compare_by_identity?.should == true
- set.compare_by_identity?.should == true
+ set.should.compare_by_identity?
+ set.should.compare_by_identity?
+ set.should.compare_by_identity?
end
end