Sha256: aed4999b31df84db48ed6d8f6acf61153dd8822d30b9c7aa5c9c90a983b5553d

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

# silence that minitest related error about minitest/autorun (since minitest version >= 5)
gem 'minitest'

require 'active_support/core_ext'
require 'badgerfish'
require 'minitest/autorun'
require 'multi_json'
require 'pry'

def assert_badgerfish(xml, json)
  json = MultiJson.dump(MultiJson.load(json)) # sanitize json
  badgerfish_json = MultiJson.dump(@parser.load(xml))

  assert_equal(json, badgerfish_json)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
badgerfish-0.2.1 test/test_helper.rb
badgerfish-0.2.0 test/test_helper.rb
badgerfish-0.1.0 test/test_helper.rb
badgerfish-0.0.5 test/test_helper.rb
badgerfish-0.0.4 test/test_helper.rb
badgerfish-0.0.3 test/test_helper.rb