Sha256: 07c5b6f094797e7e101c10342830d2bf794d228fc31e1081439e389f1b9f738b
Contents?: true
Size: 430 Bytes
Versions: 65
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true require 'active_support' module FixtureHelpers def load_fixture_file(filename) File.read(['./spec/', 'fixtures', filename].join('/')) end def load_json_fixture_file(filename) cached_json_fixture_file(filename) end private def cached_json_fixture_file(filename) ActiveSupport::JSON.decode(load_fixture_file(filename)) end end RSpec.configuration.include FixtureHelpers
Version data entries
65 entries across 65 versions & 3 rubygems