Files
openfoodnetwork/engines/dfc_provider/spec/support/example_json.rb
2023-07-03 13:25:55 +10:00

9 lines
193 B
Ruby

# frozen_string_literal: true
module ExampleJson
def self.read(name)
pathname = DfcProvider::Engine.root.join("spec/fixtures/files/#{name}.json")
JSON.parse(pathname.read)
end
end