Use true instead of false

It's more obvious the stub worked when same? reports true for different objects.
This commit is contained in:
Michael Miller 2022-03-12 15:52:48 -07:00
parent f82719746d
commit 1e7e31ff97
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF

View file

@ -73,7 +73,7 @@ Spectator.describe Spectator::Double do
Spectator::ValueStub.new(:to_yaml, "to_yaml"),
Spectator::ValueStub.new(:try, "try"),
Spectator::ValueStub.new(:object_id, 42_u64),
Spectator::ValueStub.new(:"same?", false),
Spectator::ValueStub.new(:"same?", true),
] of Spectator::Stub)
end
@ -101,8 +101,8 @@ Spectator.describe Spectator::Double do
expect(dbl.to_yaml).to eq("to_yaml")
expect(dbl.try { nil }).to eq("try")
expect(dbl.object_id).to eq(42_u64)
expect(dbl.same?(dbl)).to eq(false)
expect(dbl.same?(nil)).to eq(false)
expect(dbl.same?(dbl)).to eq(true)
expect(dbl.same?(nil)).to eq(true)
end
end