mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix "missing" variables caused by wrong macro syntax
This commit is contained in:
parent
44e681ae79
commit
007c0c7950
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue