From 007c0c79500297723510edc281e4143a855a5dd5 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Tue, 26 Mar 2019 17:59:15 -0600 Subject: [PATCH] Fix "missing" variables caused by wrong macro syntax --- src/spectator/dsl/matcher_dsl.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/dsl/matcher_dsl.cr b/src/spectator/dsl/matcher_dsl.cr index 3c2d14d..fc5ab33 100644 --- a/src/spectator/dsl/matcher_dsl.cr +++ b/src/spectator/dsl/matcher_dsl.cr @@ -518,7 +518,7 @@ module Spectator::DSL # expect_raises(ArgumentError, "foobar") { raise ArgumentError.new("foobar") } # ``` macro expect_raises(type, message) - expect {{yield}}.to raise_error(type, message) + expect {{yield}}.to raise_error({{type}}, {{message}}) end # Used to create predicate matchers.