Commit 193bc526 authored by Phil Hughes's avatar Phil Hughes

fixed specs

parent 075f5ed9
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
- fork_path = forked_project ? project_path(forked_project) : project_forks_path(@project, namespace_key: namespace.id) - fork_path = forked_project ? project_path(forked_project) : project_forks_path(@project, namespace_key: namespace.id)
.bordered-box.fork-thumbnail.text-center.prepend-left-default.append-right-default.prepend-top-default.append-bottom-default{ class: [("disabled" unless can_create_project), ("forked" if forked_project)] } .bordered-box.fork-thumbnail.text-center.prepend-left-default.append-right-default.prepend-top-default.append-bottom-default{ class: [("disabled" unless can_create_project), ("forked" if forked_project)] }
= link_to fork_path, = link_to fork_path,
method: "POST",
class: [("js-fork-thumbnail" unless forked_project), ("disabled has-tooltip" unless can_create_project)], class: [("js-fork-thumbnail" unless forked_project), ("disabled has-tooltip" unless can_create_project)],
title: (_('You have reached your project limit') unless can_create_project) do title: (_('You have reached your project limit') unless can_create_project) do
- if /no_((\w*)_)*avatar/.match(avatar) - if /no_((\w*)_)*avatar/.match(avatar)
......
...@@ -26,7 +26,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps ...@@ -26,7 +26,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
end end
step 'I fork to my namespace' do step 'I fork to my namespace' do
page.within '.fork-namespaces' do page.within '.fork-thumbnail-container' do
click_link current_user.name click_link current_user.name
end end
end end
......
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