diff options
Diffstat (limited to 'spec/contracts/provider_specs/helpers/provider/contract_source_helper_spec.rb')
-rw-r--r-- | spec/contracts/provider_specs/helpers/provider/contract_source_helper_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/contracts/provider_specs/helpers/provider/contract_source_helper_spec.rb b/spec/contracts/provider_specs/helpers/provider/contract_source_helper_spec.rb index 39537aa153d..18da71e0601 100644 --- a/spec/contracts/provider_specs/helpers/provider/contract_source_helper_spec.rb +++ b/spec/contracts/provider_specs/helpers/provider/contract_source_helper_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' require_relative '../../../provider/helpers/contract_source_helper' -RSpec.describe Provider::ContractSourceHelper, feature_category: :not_owned do +RSpec.describe Provider::ContractSourceHelper, feature_category: :shared do let(:pact_helper_path) { 'pact_helpers/project/pipelines/new/post_create_pipeline_helper.rb' } let(:split_pact_helper_path) { %w[pipelines new post_create_pipeline] } let(:provider_url_path) { 'POST%20create%20pipeline' } @@ -54,8 +54,12 @@ RSpec.describe Provider::ContractSourceHelper, feature_category: :not_owned do end describe '#pact_broker_url' do + before do + stub_env('QA_PACT_BROKER_HOST', 'http://localhost') + end + it 'returns the full url to the contract that the provider test is verifying' do - contract_url_path = "http://localhost:9292/pacts/provider/" \ + contract_url_path = "http://localhost/pacts/provider/" \ "#{provider_url_path}/consumer/#{consumer_url_path}/latest" expect(subject.pact_broker_url(split_pact_helper_path)).to eq(contract_url_path) |