Sha256: 730dcf3ca3512a2f666538a55cc45602d0c47f47dcf20e9d418dd2969d419786

Contents?: true

Size: 321 Bytes

Versions: 9

Compression:

Stored size: 321 Bytes

Contents

class DictKeyMatcher
  defm match(expected, actual)
    return has_key(actual, expected)
  end

  defm failure_message_for_match(expected, actual)
    return "expected dict to have key #{actual}"
  end

  defm failure_message_for_mismatch(expected, actual)
    return "expected dict to not have key #{actual}"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
speckle-0.1.12 lib/matchers/dict_key_matcher.riml
speckle-0.1.11 lib/matchers/dict_key_matcher.riml
speckle-0.1.10 lib/matchers/dict_key_matcher.riml
speckle-0.1.9 lib/matchers/dict_key_matcher.riml
speckle-0.1.8 lib/matchers/dict_key_matcher.riml
speckle-0.1.7 lib/matchers/dict_key_matcher.riml
speckle-0.1.4 lib/matchers/dict_key_matcher.riml
speckle-0.1.3 lib/matchers/dict_key_matcher.riml
speckle-0.1.2 lib/matchers/dict_key_matcher.riml