Skip to content

Commit

Permalink
Reference global Spec in be_a macro (crystal-lang#9066)
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite authored and carlhoerberg committed Apr 29, 2020
1 parent 9a7d5fa commit 4c2c44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec/expectations.cr
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ module Spec

# Creates an `Expectation` that passes if actual is of type *type* (`is_a?`).
macro be_a(type)
Spec::BeAExpectation({{type}}).new
::Spec::BeAExpectation({{type}}).new
end

# Runs the block and passes if it raises an exception of type *klass* and the error message matches.
Expand Down

0 comments on commit 4c2c44d

Please sign in to comment.