Sha256: cd49630bd8e78c524d937bd8a7d819488e9e7d119192edeb15e65366161379ab

Contents?: true

Size: 218 Bytes

Versions: 12

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

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.89.1 spec/support/fixture_helpers.rb
pact_broker-2.89.0 spec/support/fixture_helpers.rb
pact_broker-2.88.0 spec/support/fixture_helpers.rb
pact_broker-2.87.0 spec/support/fixture_helpers.rb
pact_broker-2.86.0 spec/support/fixture_helpers.rb
pact_broker-2.85.1 spec/support/fixture_helpers.rb
pact_broker-2.85.0 spec/support/fixture_helpers.rb
pact_broker-2.84.0 spec/support/fixture_helpers.rb
pact_broker-2.83.0 spec/support/fixture_helpers.rb
pact_broker-2.82.0 spec/support/fixture_helpers.rb
pact_broker-2.81.0 spec/support/fixture_helpers.rb
pact_broker-2.80.0 spec/support/fixture_helpers.rb