1
0
Fork 0
discourse-custom-wizard-unl.../spec/plugin_helper.rb

9 Zeilen
213 B
Ruby

# frozen_string_literal: true
def get_wizard_fixture(path)
JSON.parse(
File.open(
"#{Rails.root}/plugins/discourse-custom-wizard/spec/fixtures/#{path}.json"
).read
).with_indifferent_access
end