Sha256: 4c2d8803a0f874669de43500f67b4b59cd8ab7b6f256b652b421bafbe669b308

Contents?: true

Size: 222 Bytes

Versions: 9

Compression:

Stored size: 222 Bytes

Contents

# frozen_string_literal: true
module PayloadsHelper
  def payload(name)
    Shipit::Engine.root.join('test/fixtures/payloads', "#{name}.json").read
  end

  def payload_parsed(name)
    JSON.parse(payload(name))
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 test/helpers/payloads_helper.rb
shipit-engine-0.38.0 test/helpers/payloads_helper.rb
shipit-engine-0.37.0 test/helpers/payloads_helper.rb
shipit-engine-0.36.1 test/helpers/payloads_helper.rb
shipit-engine-0.36.0 test/helpers/payloads_helper.rb
shipit-engine-0.35.1 test/helpers/payloads_helper.rb
shipit-engine-0.35.0 test/helpers/payloads_helper.rb
shipit-engine-0.34.0 test/helpers/payloads_helper.rb
shipit-engine-0.33.0 test/helpers/payloads_helper.rb