spec/support/fixture_helpers.rb in sinclair-1.1.1 vs spec/support/fixture_helpers.rb in sinclair-1.1.2

- old
+ new

@@ -1,19 +1,21 @@ +# frozen_string_literal: true + require 'active_support' module FixtureHelpers def load_fixture_file(filename) - File.read (['./spec/', 'fixtures', filename].join('/')) + 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)) + ActiveSupport::JSON.decode(load_fixture_file(filename)) end end RSpec.configuration.include FixtureHelpers