From ccedcdac420512a04a4aebd896575f6c82b6f0c7 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 10 Jul 2021 03:31:22 -0600 Subject: [PATCH] Use getter! macro --- src/spectator/expectation.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/expectation.cr b/src/spectator/expectation.cr index 1b19562..cc376b6 100644 --- a/src/spectator/expectation.cr +++ b/src/spectator/expectation.cr @@ -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?