Skip to content

Commit

Permalink
Override block variant of does_not_match?
Browse files Browse the repository at this point in the history
  • Loading branch information
icy-arctic-fox committed Aug 13, 2024
1 parent c999573 commit e65439b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spectator/matchers/matchable.cr
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ module Spectator::Matchers
no_block!
end

def does_not_match?(&block)
!matches?(&block)
end

def failure_message(actual_value)
no_block!
end
Expand Down

0 comments on commit e65439b

Please sign in to comment.