diff options
Diffstat (limited to 'spec/contracts/provider/pact_helpers/project/pipelines/show/delete_pipeline_helper.rb')
-rw-r--r-- | spec/contracts/provider/pact_helpers/project/pipelines/show/delete_pipeline_helper.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/contracts/provider/pact_helpers/project/pipelines/show/delete_pipeline_helper.rb b/spec/contracts/provider/pact_helpers/project/pipelines/show/delete_pipeline_helper.rb new file mode 100644 index 00000000000..1801e989c99 --- /dev/null +++ b/spec/contracts/provider/pact_helpers/project/pipelines/show/delete_pipeline_helper.rb @@ -0,0 +1,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/show_state" + +module Provider + module DeletePipelineHelper + Pact.service_provider "DELETE pipeline" do + app { Environments::Test.app } + + honours_pact_with "Pipelines#show" 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 |