Sha256: df02ee576c1fc4b124993d1fd926026c8a4daa763ff43d964407646edc4c50a9

Contents?: true

Size: 370 Bytes

Versions: 17

Compression:

Stored size: 370 Bytes

Contents

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

    def assert_array_equals(exp, act, msg = nil)
      msg = message(msg, '') { diff exp, act }
      assert(matches_array?(exp, act, {exact: true}), msg)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
jsonapi-resources-0.7.1.beta1 test/helpers/assertions.rb
jsonapi-resources-0.7.0 test/helpers/assertions.rb
jsonapi-resources-0.6.2 test/helpers/assertions.rb
jsonapi-resources-0.6.1 test/helpers/assertions.rb
jsonapi-resources-0.6.0 test/helpers/assertions.rb
jsonapi-resources-0.5.9 test/helpers/assertions.rb
jsonapi-resources-0.5.8 test/helpers/assertions.rb
jsonapi-resources-0.5.7 test/helpers/assertions.rb
jsonapi-resources-0.5.6 test/helpers/assertions.rb
jsonapi-resources-0.5.5 test/helpers/assertions.rb
jsonapi-resources-0.5.4 test/helpers/assertions.rb
jsonapi-resources-0.5.3 test/helpers/assertions.rb
jsonapi-resources-0.5.2 test/helpers/assertions.rb
jsonapi-resources-0.5.1 test/helpers/assertions.rb
jsonapi-resources-0.5.0 test/helpers/assertions.rb
jsonapi-resources-0.4.4 test/helpers/assertions.rb
jsonapi-resources-0.4.3 test/helpers/assertions.rb