Commit 1de1e32b authored by Phil Hughes's avatar Phil Hughes

Merge branch 'id-remove-custom-default-branch-ref' into 'master'

Remove hardcoded default branch name from FE tests

See merge request gitlab-org/gitlab!76457
parents ab67de6f 21295630
......@@ -28,7 +28,7 @@ describe('Blob viewer', () => {
loadFixtures('blob/show_readme.html');
$('#modal-upload-blob').remove();
mock.onGet(/blob\/master\/README\.md/).reply(200, {
mock.onGet(/blob\/.+\/README\.md/).reply(200, {
html: '<div>testing</div>',
});
......
......@@ -34,7 +34,7 @@ RSpec.describe Projects::BlobController, '(JavaScript fixtures)', type: :control
get(:show, params: {
namespace_id: project.namespace,
project_id: project,
id: 'master/README.md'
id: "#{project.default_branch}/README.md"
})
expect(response).to be_successful
......
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