This commit is contained in:
Michael Miller 2021-07-17 16:41:49 -06:00
parent eda4328a92
commit e60cc2a447
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -51,7 +51,7 @@ module Spectator
# This only works if the location of the failed expectation was reported.
# If available, returns a `Location`, otherwise raises `NilAssertionError`.
def location : Location
location? || raise(NilAssertionError.new("Source location of result unavailable"))
location? || raise(NilAssertionError.new("Source location of failure unavailable"))
end
# One-word description of the result.