1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-05-03 12:28:29 +02:00
parent f646d20aae
commit 5aaa75e7c1
263 changed files with 921 additions and 921 deletions

View file

@ -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