Sha256: 2b4c6cf27f59ff69afeedaef26e75cbb55ff39a06d3cdfbe4c7e45998b3d87fd

Contents?: true

Size: 290 Bytes

Versions: 9

Compression:

Stored size: 290 Bytes

Contents

require 'multi_json'

def load_fixture(file, _as_json = false)
  JSON.parse(File.read(File.dirname(__FILE__) + "/../fixtures/#{file}.json")).with_indifferent_access
end

def load_json(file, _as_json = false)
  JSON.parse(File.read(File.dirname(__FILE__) + "/../fixtures/#{file}.json"))
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
contentful-importer-0.2.2 spec/support/db_rows_json.rb
contentful-importer-0.2.1 spec/support/db_rows_json.rb
contentful-importer-0.2.0 spec/support/db_rows_json.rb
database-exporter-0.0.2 spec/support/db_rows_json.rb
contentful-importer-0.1.1 spec/support/db_rows_json.rb
contentful-importer-0.1.0 spec/support/db_rows_json.rb
contentful-importer-0.0.2 spec/support/db_rows_json.rb
contentful-importer-0.0.1 spec/support/db_rows_json.rb
database-exporter-0.0.1 spec/support/db_rows_json.rb