mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
9 lines
193 B
Ruby
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
|