Sha256: 6f5614b6aee4eb55703d6f2831fa07ae75fe2386bd099ddf564b6572789a3309

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

module Helpers
  module HashHelpers
    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jsonapi-resources-0.0.7 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.6 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.5 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.4 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.3 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.2 test/helpers/hash_helpers.rb
jsonapi-resources-0.0.1 test/helpers/hash_helpers.rb