diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 03:09:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 03:09:31 +0300 |
commit | e70cf9a65919abc7042672ee544dbf2ccb1e2a9e (patch) | |
tree | 81f4092b260250879e7eda0bca10faaa9ec4f338 /spec/presenters | |
parent | 3e308768fd9306a49bb0149ca3636e8e8285485d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/presenters')
-rw-r--r-- | spec/presenters/packages/composer/packages_presenter_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/presenters/packages/composer/packages_presenter_spec.rb b/spec/presenters/packages/composer/packages_presenter_spec.rb index 19d99a62468..0c2631f2b01 100644 --- a/spec/presenters/packages/composer/packages_presenter_spec.rb +++ b/spec/presenters/packages/composer/packages_presenter_spec.rb @@ -67,10 +67,14 @@ RSpec.describe ::Packages::Composer::PackagesPresenter do { 'packages' => [], 'provider-includes' => { 'p/%hash%.json' => { 'sha256' => /^\h+$/ } }, - 'providers-url' => "/api/v4/group/#{group.id}/-/packages/composer/%package%$%hash%.json" + 'providers-url' => "prefix/api/v4/group/#{group.id}/-/packages/composer/%package%$%hash%.json" } end + before do + stub_config(gitlab: { relative_url_root: 'prefix' }) + end + it 'returns the provider json' do expect(subject).to match(expected_json) end |