Sha256: 82025ff7c322dbf1074944b5c8cb8609ca85d0c0d9b6dd4d92ec35f63adb1898

Contents?: true

Size: 218 Bytes

Versions: 161

Compression:

Stored size: 218 Bytes

Contents

module FixtureHelpers
  def load_fixture(file_name)
    File.read(File.join("./spec/fixtures", file_name))
  end

  def load_json_fixture(file_name)
    require 'json'
    JSON.parse(load_fixture(file_name))
  end
end

Version data entries

161 entries across 161 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/support/fixture_helpers.rb
pact_broker-2.79.0 spec/support/fixture_helpers.rb
pact_broker-2.78.1 spec/support/fixture_helpers.rb
pact_broker-2.78.0 spec/support/fixture_helpers.rb
pact_broker-2.77.0 spec/support/fixture_helpers.rb
pact_broker-2.76.2 spec/support/fixture_helpers.rb
pact_broker-2.76.1 spec/support/fixture_helpers.rb
pact_broker-2.76.0 spec/support/fixture_helpers.rb
pact_broker-2.75.0 spec/support/fixture_helpers.rb
pact_broker-2.74.1 spec/support/fixture_helpers.rb
pact_broker-2.74.0 spec/support/fixture_helpers.rb
pact_broker-2.73.0 spec/support/fixture_helpers.rb
pact_broker-2.72.0 spec/support/fixture_helpers.rb
pact_broker-2.71.0 spec/support/fixture_helpers.rb
pact_broker-2.70.0 spec/support/fixture_helpers.rb
pact_broker-2.69.0 spec/support/fixture_helpers.rb
pact_broker-2.68.1 spec/support/fixture_helpers.rb
pact_broker-2.68.0 spec/support/fixture_helpers.rb
pact_broker-2.67.0 spec/support/fixture_helpers.rb
pact_broker-2.66.0 spec/support/fixture_helpers.rb