Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-03 00:07:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-03 00:07:10 +0300
commitec8cf3f7c8d9ac408a81af714db7a0640cf0199d (patch)
treecbe011f521781fe98c656330cb5f42703bd71c03 /spec/contracts/provider_specs
parentaf833d9730dd367984b55ef02ccc3fe6eb83f0e4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/contracts/provider_specs')
-rw-r--r--spec/contracts/provider_specs/helpers/provider/contract_source_helper_spec.rb11
1 files changed, 7 insertions, 4 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 8b5ea522641..8bb3b577135 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
@@ -71,15 +71,18 @@ RSpec.describe Provider::ContractSourceHelper, feature_category: :not_owned do
describe '#local_contract_location' do
it 'returns the contract file path with the prefix path for a rake task' do
- rake_task_relative_path = '/gitlab/spec/contracts/contracts/project'
+ rake_task_relative_path = '/spec/contracts/contracts/project'
- expect(subject.local_contract_location(:rake, split_pact_helper_path)).to include(rake_task_relative_path)
+ rake_task_path = subject.local_contract_location(:rake, split_pact_helper_path)
+
+ expect(rake_task_path).to include(rake_task_relative_path)
+ expect(rake_task_path).not_to include('../')
end
it 'returns the contract file path with the prefix path for a spec' do
- rake_task_relative_path = '../contracts/project'
+ spec_relative_path = '../contracts/project'
- expect(subject.local_contract_location(:spec, split_pact_helper_path)).to include(rake_task_relative_path)
+ expect(subject.local_contract_location(:spec, split_pact_helper_path)).to include(spec_relative_path)
end
end