Skip to content

Commit

Permalink
Add info text to avoid lint issue with not_nil!
Browse files Browse the repository at this point in the history
  • Loading branch information
icy-arctic-fox committed Jul 24, 2024
1 parent 9536a4a commit 7b60a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Spectator::Matchers.define :be_successful do
end

failure_message(block: true) do
result = @result.not_nil!
result = @result.not_nil!("`match` must be called before `failure_message`")
<<-END_OF_MESSAGE
Expected block to be successful, but the result was #{result.status}
Expand Down

0 comments on commit 7b60a6b

Please sign in to comment.