diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-13 14:11:26 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-13 14:11:26 +0300 |
commit | bc4d732af126277b3e85aedce795158bd389fbea (patch) | |
tree | 9811a1527cb450fce23c2b2bec76ce1686bdd571 /spec/features | |
parent | 2c5a95cbeb3ac4a19ad177d03d2703235e1f1c3c (diff) | |
download | gitlab-ce-bc4d732af126277b3e85aedce795158bd389fbea.tar.gz |
Update users routing spec
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/users_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb index 6498b7317b4..c78c84dc5d0 100644 --- a/spec/features/users_spec.rb +++ b/spec/features/users_spec.rb @@ -49,6 +49,18 @@ feature 'Users', feature: true do expect(current_path).to eq user_path(user) expect(page).to have_text(user.name) end + + scenario '/u/user1/groups redirects to user groups page' do + visit '/u/user1/groups' + + expect(current_path).to eq user_groups_path(user) + end + + scenario '/u/user1/projects redirects to user projects page' do + visit '/u/user1/projects' + + expect(current_path).to eq user_projects_path(user) + end end def errors_on_page(page) |