summaryrefslogtreecommitdiff
path: root/spec/contracts/provider/pact_helpers/project/pipelines/index/get_list_project_pipelines_helper.rb
blob: 03708db2eb2549bea3a8183d5606bfcc89de12e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require_relative "../../../../spec_helper"
require_relative "../../../../helpers/contract_source_helper"
require_relative "../../../../helpers/publish_contract_helper"
require_relative "../../../../states/project/pipelines/index_state"

module Provider
  module GetListProjectPipelinesHelper
    Pact.service_provider "GET list project pipelines" do
      app { Environments::Test.app }

      honours_pact_with "Pipelines#index" do
        pact_uri Provider::ContractSourceHelper.contract_location(:spec, __FILE__)
      end

      Provider::PublishContractHelper.publish_contract_setup.call(
        method(:app_version),
        method(:app_version_branch),
        method(:publish_verification_results)
      )
    end
  end
end