Commit d24fd32aa5090e1f26f028921048e15f09f82323
1 parent
cd47e625
Exists in
master
and in
4 other branches
feature tests
Showing
3 changed files
with
18 additions
and
0 deletions
Show diff stats
features/steps/dashboard/dashboard.rb
@@ -63,6 +63,12 @@ class Dashboard < Spinach::FeatureSteps | @@ -63,6 +63,12 @@ class Dashboard < Spinach::FeatureSteps | ||
63 | @project.team << [current_user, :master] | 63 | @project.team << [current_user, :master] |
64 | end | 64 | end |
65 | 65 | ||
66 | + Then 'I should see projects list' do | ||
67 | + @user.authorized_projects.all.each do |project| | ||
68 | + page.should have_link project.name_with_namespace | ||
69 | + end | ||
70 | + end | ||
71 | + | ||
66 | Then 'I should see groups list' do | 72 | Then 'I should see groups list' do |
67 | Group.all.each do |group| | 73 | Group.all.each do |group| |
68 | page.should have_link group.name | 74 | page.should have_link group.name |
features/steps/shared/paths.rb
@@ -33,6 +33,10 @@ module SharedPaths | @@ -33,6 +33,10 @@ module SharedPaths | ||
33 | visit dashboard_path | 33 | visit dashboard_path |
34 | end | 34 | end |
35 | 35 | ||
36 | + Given 'I visit dashboard projects page' do | ||
37 | + visit projects_dashboard_path | ||
38 | + end | ||
39 | + | ||
36 | Given 'I visit dashboard issues page' do | 40 | Given 'I visit dashboard issues page' do |
37 | visit issues_dashboard_path | 41 | visit issues_dashboard_path |
38 | end | 42 | end |