diff --git a/src/spectator/dsl/matcher_dsl.cr b/src/spectator/dsl/matcher_dsl.cr index 8311005..ac4315d 100644 --- a/src/spectator/dsl/matcher_dsl.cr +++ b/src/spectator/dsl/matcher_dsl.cr @@ -527,7 +527,7 @@ module Spectator::DSL # expect_raises { raise "foobar" } # ``` macro expect_raises - expect {{yield}}.to raise_error + expect {{block}}.to raise_error end # Indicates that some block should raise an error with a given type.