Use getter! macro

This commit is contained in:
Michael Miller 2021-07-10 03:31:22 -06:00
parent aee5897922
commit ccedcdac42
No known key found for this signature in database
GPG Key ID: F9A0C5C65B162436
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module Spectator
# Location of the expectation in source code.
# This can be nil if the location isn't capturable,
# for instance using the *should* syntax or dynamically created expectations.
getter location : Location?
getter! location : Location
# Indicates whether the expectation was met.
def satisfied?