Fix "missing" variables caused by wrong macro syntax

This commit is contained in:
Michael Miller 2019-03-26 17:59:15 -06:00
parent 44e681ae79
commit 007c0c7950

View file

@ -518,7 +518,7 @@ module Spectator::DSL
# expect_raises(ArgumentError, "foobar") { raise ArgumentError.new("foobar") } # expect_raises(ArgumentError, "foobar") { raise ArgumentError.new("foobar") }
# ``` # ```
macro expect_raises(type, message) macro expect_raises(type, message)
expect {{yield}}.to raise_error(type, message) expect {{yield}}.to raise_error({{type}}, {{message}})
end end
# Used to create predicate matchers. # Used to create predicate matchers.