From 2da1f9dbbf0e24ee5a9e5412857982a4a8bbbe99 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Tue, 26 Mar 2019 18:05:08 -0600 Subject: [PATCH] Missed one --- 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 fc5ab33..e56e0bf 100644 --- a/src/spectator/dsl/matcher_dsl.cr +++ b/src/spectator/dsl/matcher_dsl.cr @@ -503,7 +503,7 @@ module Spectator::DSL # expect_raises(KeyError) { hash["baz"] }.to raise_error(KeyError) # ``` macro expect_raises(type) - expect {{yield}}.to raise_error(type) + expect {{yield}}.to raise_error({{type}}) end # Indicates that some block should raise an error with a given message and type.