Commit 21295630 authored by Igor Drozdov's avatar Igor Drozdov

Remove hardcoded default branch name from FE tests

parent e242de4a
......@@ -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