Sha256: f41494ef2a19b4290ea0081e0ca13089c0252fb7d73cc4d3c664ca085dcd5618

Contents?: true

Size: 234 Bytes

Versions: 12

Compression:

Stored size: 234 Bytes

Contents

require "json"

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 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.89.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.88.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.87.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.86.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.85.1 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.85.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.84.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.83.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.82.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.81.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb
pact_broker-2.80.0 db/test/backwards_compatibility/spec/support/fixture_helpers.rb