Sha256: 6216762170c8aaf44270f9da9bdb2583966ae84fc3715f2f43bb191f5f70d659
Contents?: true
Size: 369 Bytes
Versions: 25
Compression:
Stored size: 369 Bytes
Contents
module Mongomatic module Expectations class Match < Expectation def self.name "match" end def to_be return true if opts[:allow_nil] && value.nil? add_error_msg unless opts[:with].match(value.to_s) end def to_not_be add_error_msg if opts[:with].match(value.to_s) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems