summaryrefslogtreecommitdiff
path: root/spec/contracts/provider/pact_helpers/project/pipeline/index/create_a_new_pipeline_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/contracts/provider/pact_helpers/project/pipeline/index/create_a_new_pipeline_helper.rb')
-rw-r--r--spec/contracts/provider/pact_helpers/project/pipeline/index/create_a_new_pipeline_helper.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/contracts/provider/pact_helpers/project/pipeline/index/create_a_new_pipeline_helper.rb b/spec/contracts/provider/pact_helpers/project/pipeline/index/create_a_new_pipeline_helper.rb
new file mode 100644
index 00000000000..247a7c4ca8e
--- /dev/null
+++ b/spec/contracts/provider/pact_helpers/project/pipeline/index/create_a_new_pipeline_helper.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+require_relative '../../../../spec_helper'
+require_relative '../../../../states/project/pipeline/new_state'
+
+module Provider
+ module CreateNewPipelineHelper
+ Pact.service_provider "POST Create a new pipeline" do
+ app { Environments::Test.app }
+
+ honours_pact_with 'Pipelines#new' do
+ pact_uri '../contracts/project/pipeline/new/pipelines#new-post_create_a_new_pipeline.json'
+ end
+ end
+ end
+end