diff options
Diffstat (limited to 'lib/tasks/contracts/pipeline_schedules.rake')
-rw-r--r-- | lib/tasks/contracts/pipeline_schedules.rake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/tasks/contracts/pipeline_schedules.rake b/lib/tasks/contracts/pipeline_schedules.rake index 75080d41ebe..b4c87d2e3c9 100644 --- a/lib/tasks/contracts/pipeline_schedules.rake +++ b/lib/tasks/contracts/pipeline_schedules.rake @@ -4,15 +4,18 @@ return if Rails.env.production? require 'pact/tasks/verification_task' -contracts = File.expand_path('../../../spec/contracts/contracts/project/pipeline_schedule', __dir__) provider = File.expand_path('../../../spec/contracts/provider', __dir__) namespace :contracts do + require_relative "../../../spec/contracts/provider/helpers/contract_source_helper" + namespace :pipeline_schedules do Pact::VerificationTask.new(:update_pipeline_schedule) do |pact| + pact_helper_location = "pact_helpers/project/pipeline_schedules/edit/put_edit_a_pipeline_schedule_helper.rb" + pact.uri( - "#{contracts}/edit/pipelineschedules#edit-put_edit_a_pipeline_schedule.json", - pact_helper: "#{provider}/pact_helpers/project/pipeline_schedule/update_pipeline_schedule_helper.rb" + Provider::ContractSourceHelper.contract_location(:rake, pact_helper_location), + pact_helper: "#{provider}/#{pact_helper_location}" ) end |