Skip to content

Commit

Permalink
Fix: assert_raises may take a nil message
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Apr 18, 2017
1 parent f0989f7 commit 825656e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assertions.cr
Expand Up @@ -258,7 +258,7 @@ module Minitest
end


def assert_raises(message : String = nil, file = __FILE__, line = __LINE__)
def assert_raises(message : String? = nil, file = __FILE__, line = __LINE__)
begin
yield
rescue ex
Expand Down

0 comments on commit 825656e

Please sign in to comment.