Commit 33c6a8cd authored by John Long's avatar John Long

Update spec test for relative url

parent 35c92820
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment