diff options
Diffstat (limited to 'qa/contracts/provider/spec/diffs_helper.rb')
-rw-r--r-- | qa/contracts/provider/spec/diffs_helper.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qa/contracts/provider/spec/diffs_helper.rb b/qa/contracts/provider/spec/diffs_helper.rb new file mode 100644 index 00000000000..95dbc4254e6 --- /dev/null +++ b/qa/contracts/provider/spec/diffs_helper.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +require_relative '../spec_helper' + +module Provider + module DiffsHelper + local = Environments::Local.new + + Pact.service_provider "Merge Request Diffs Endpoint" do + app { local.merge_request('/diffs_batch.json?page=0') } + + honours_pact_with 'Merge Request Page' do + pact_uri '../contracts/merge_request_page-merge_request_diffs_endpoint.json' + end + end + end +end |