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

View file

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