dsawardekar/speckle

View on GitHub
lib/matchers/boolean_matcher.riml

Summary

Maintainability
Test Coverage
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