Commit 83130de0 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'id-fix-replace-file-button' into 'master'

Fix Replace button form path

See merge request gitlab-org/gitlab!80953
parents 6fef9375 5c6ac77f
......@@ -56,7 +56,7 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated
end
def replace_path
url_helpers.project_create_blob_path(project, ref_qualified_path)
url_helpers.project_update_blob_path(project, ref_qualified_path)
end
def pipeline_editor_path
......
......@@ -28,7 +28,7 @@ RSpec.describe BlobPresenter do
end
describe '#replace_path' do
it { expect(presenter.replace_path).to eq("/#{project.full_path}/-/create/#{blob.commit_id}/#{blob.path}") }
it { expect(presenter.replace_path).to eq("/#{project.full_path}/-/update/#{blob.commit_id}/#{blob.path}") }
end
describe '#can_current_user_push_to_branch' do
......
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