mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use true instead of false
It's more obvious the stub worked when same? reports true for different objects.
This commit is contained in:
parent
f82719746d
commit
1e7e31ff97
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue