class NoMatchAssay

Ruby 1.9+ allows #!~ to redfined as it’s own method, so a corresponding assay is required to cover it.

Public Class Methods

pass?(matcher, matchee) click to toggle source

Check no match assertion with ‘#!~` method.

# File lib/assay/nomatch_assay.rb, line 13
def self.pass?(matcher, matchee)
  matcher !~ matchee
end