Sha256: 35cd89ff4c9782228a07e29e737b9f7ae53a0cf82eedd83b1a79409e20a79584

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

require 'multi_json'

def json_fixture(file, _as_json = false)
  MultiJson.load(
      File.read(File.dirname(__FILE__) + "/../fixtures/#{file}.json")
  ).with_indifferent_access
end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
drupal-exporter-0.0.1 spec/support/db_rows_json.rb