summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-02-15 13:42:33 +0100
committerJames Lopez <james@jameslopez.es>2018-02-23 14:02:40 +0100
commit31abc74ff427f0b350b7121d5e6a7394daf7bf2f (patch)
treef23e5ce7f9944f2fcc8d206a190cce0181260a5d
parent6ade6e2bb6a937c08da9a1bc62f62e92ad2ab06e (diff)
downloadgitlab-ce-31abc74ff427f0b350b7121d5e6a7394daf7bf2f.tar.gz
fix specs
-rw-r--r--app/helpers/blob_helper.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb
index 1c076321cb7..9c682a856dd 100644
--- a/app/helpers/blob_helper.rb
+++ b/app/helpers/blob_helper.rb
@@ -27,7 +27,9 @@ module BlobHelper
elsif !current_user || user_can_modify_blob(blob, project, ref)
edit_link_tag(edit_text, edit_blob_path(project, ref, path, options), common_classes)
elsif user_can_fork_project(project)
- edit_fork_button_tag(common_classes, project, edit_text, edit_blob_fork_params(path))
+ edit_fork_button_tag(common_classes,
+ project, edit_text,
+ edit_blob_fork_params(edit_blob_path(project, ref, path, options)))
end
end
@@ -60,7 +62,10 @@ module BlobHelper
elsif user_can_modify_blob(blob, project, ref)
edit_link_tag(ide_edit_text, ide_edit_path(project, ref, path, options), common_classes)
elsif user_can_fork_project(project)
- edit_fork_button_tag(common_classes, project, ide_edit_text, edit_blob_fork_params(path))
+ edit_fork_button_tag(common_classes,
+ project,
+ ide_edit_text,
+ edit_blob_fork_params(ide_edit_path(project, ref, path, options)))
end
end
@@ -332,7 +337,6 @@ module BlobHelper
to: request.fullpath,
notice: edit_in_new_fork_notice_action(action),
notice_now: edit_in_new_fork_notice_now,
- action: action
}
end