diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-14 17:06:39 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-14 17:06:39 +0300 |
commit | 2388fdd7c6274dad8c10f5bc517f0a8b1aa28aa3 (patch) | |
tree | 9f862ed410b9a4d774c4791159291083ccc2c392 /features/steps/project/fork.rb | |
parent | d2c3c98e3cf88dd59a2a1a0d94e711e31c11b2cd (diff) |
Improve fork to namespaces feature
* Show namespace thumbnail differently if project was already forked
* Show loading spinner when click on fork
* Fork link navigates to personal namespace only if no manageable groups exists
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/steps/project/fork.rb')
-rw-r--r-- | features/steps/project/fork.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/features/steps/project/fork.rb b/features/steps/project/fork.rb index da50ba9ced0..8e58597db20 100644 --- a/features/steps/project/fork.rb +++ b/features/steps/project/fork.rb @@ -25,4 +25,10 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps step 'I should see a "Name has already been taken" warning' do page.should have_content "Name has already been taken" end + + step 'I fork to my namespace' do + within '.fork-namespaces' do + click_link current_user.name + end + end end |