Sha256: 1c3a80c0cd3d7a5e6348a78581a42e8ea85bee2226bebef8eab8c517d3b58b92

Contents?: true

Size: 384 Bytes

Versions: 12

Compression:

Stored size: 384 Bytes

Contents

module Helpers
  module HashHelpers
    # :nocov:
    def assert_hash_contains(exp, act, msg = nil)
      msg = message(msg, '') { diff exp, act }
      assert(matches_hash?(exp, act), msg)
    end

    def assert_hash_equals(exp, act, msg = nil)
      msg = message(msg, '') { diff exp, act }
      assert(matches_hash?(exp, act, {exact: true}), msg)
    end
    # :nocov:
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jsonapi-resources-0.2.0 test/helpers/hash_helpers.rb
jsonapi-resources-0.1.1 test/helpers/hash_helpers.rb
jsonapi-resources-0.1.0 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.16 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.15 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.14 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.13 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.12 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.11 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.10 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.9 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.8 test/helpers/hash_helpers.rb