Sha256: 2cf9eaa17abb034f198fa929e41d18f6f244f5d968db64f900127fdc09c94571

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 Bytes

Contents

class BooleanMatcher
  defm match(expected, actual)
    return actual === true
  end

  defm failure_message_for_match(expected, actual)
    return "expected “#{actual}” to be true"
  end

  defm failure_message_for_mismatch(expected, actual)
    return "expected “#{actual}” to be false"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
speckle-0.2.0 lib/matchers/boolean_matcher.riml
speckle-0.1.31 lib/matchers/boolean_matcher.riml
speckle-0.1.30 lib/matchers/boolean_matcher.riml
speckle-0.1.29 lib/matchers/boolean_matcher.riml
speckle-0.1.28 lib/matchers/boolean_matcher.riml
speckle-0.1.27 lib/matchers/boolean_matcher.riml