mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Just assert the return value isn't nil
This commit is contained in:
parent
efd0ab089d
commit
db4eaca291
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ module Spectator::Expectations
|
||||||
end
|
end
|
||||||
|
|
||||||
def failure_message
|
def failure_message
|
||||||
@match_data.as(Matchers::FailedMatchData).failure_message
|
failure_message?.not_nil!
|
||||||
end
|
end
|
||||||
|
|
||||||
def values?
|
def values?
|
||||||
|
@ -33,7 +33,7 @@ module Spectator::Expectations
|
||||||
end
|
end
|
||||||
|
|
||||||
def values
|
def values
|
||||||
@match_data.as(Matchers::FailedMatchData).values
|
values?.not_nil!
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates the JSON representation of the expectation.
|
# Creates the JSON representation of the expectation.
|
||||||
|
|
Loading…
Reference in a new issue