mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix truthy values not being strings
This commit is contained in:
parent
76c21d447a
commit
85531fecf9
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ module Spectator::Matchers
|
||||||
{
|
{
|
||||||
expected: @truthy ? "Not false or nil" : "false or nil",
|
expected: @truthy ? "Not false or nil" : "false or nil",
|
||||||
actual: actual.value.inspect,
|
actual: actual.value.inspect,
|
||||||
truthy: !!actual.value.inspect,
|
truthy: (!!actual.value).inspect,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ module Spectator::Matchers
|
||||||
{
|
{
|
||||||
expected: @truthy ? "false or nil" : "Not false or nil",
|
expected: @truthy ? "false or nil" : "Not false or nil",
|
||||||
actual: actual.value.inspect,
|
actual: actual.value.inspect,
|
||||||
truthy: !!actual.value.inspect,
|
truthy: (!!actual.value).inspect,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue