feature tests
This commit is contained in:
parent
cd47e625f0
commit
d24fd32aa5
3 changed files with 18 additions and 0 deletions
8
features/dashboard/projects.feature
Normal file
8
features/dashboard/projects.feature
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Feature: Dashboard
|
||||||
|
Background:
|
||||||
|
Given I sign in as a user
|
||||||
|
And I own project "Shop"
|
||||||
|
And I visit dashboard projects page
|
||||||
|
|
||||||
|
Scenario: I should see issues list
|
||||||
|
Then I should see projects list
|
|
@ -63,6 +63,12 @@ class Dashboard < Spinach::FeatureSteps
|
||||||
@project.team << [current_user, :master]
|
@project.team << [current_user, :master]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Then 'I should see projects list' do
|
||||||
|
@user.authorized_projects.all.each do |project|
|
||||||
|
page.should have_link project.name_with_namespace
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Then 'I should see groups list' do
|
Then 'I should see groups list' do
|
||||||
Group.all.each do |group|
|
Group.all.each do |group|
|
||||||
page.should have_link group.name
|
page.should have_link group.name
|
||||||
|
|
|
@ -33,6 +33,10 @@ module SharedPaths
|
||||||
visit dashboard_path
|
visit dashboard_path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Given 'I visit dashboard projects page' do
|
||||||
|
visit projects_dashboard_path
|
||||||
|
end
|
||||||
|
|
||||||
Given 'I visit dashboard issues page' do
|
Given 'I visit dashboard issues page' do
|
||||||
visit issues_dashboard_path
|
visit issues_dashboard_path
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue