Commit 5c6ac77f authored by Igor Drozdov's avatar Igor Drozdov

Fix Replace button form path

Changelog: fixed
parent 37dae5be
......@@ -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