Just assert the return value isn't nil

This commit is contained in:
Michael Miller 2019-08-09 17:21:12 -06:00
parent efd0ab089d
commit db4eaca291

View file

@ -25,7 +25,7 @@ module Spectator::Expectations
end
def failure_message
@match_data.as(Matchers::FailedMatchData).failure_message
failure_message?.not_nil!
end
def values?
@ -33,7 +33,7 @@ module Spectator::Expectations
end
def values
@match_data.as(Matchers::FailedMatchData).values
values?.not_nil!
end
# Creates the JSON representation of the expectation.