Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
b8d73315
Commit
b8d73315
authored
Mar 09, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for starred projects page
parent
d36ee319
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
features/dashboard/starred_projects.feature
features/dashboard/starred_projects.feature
+12
-0
features/steps/dashboard/starred_projects.rb
features/steps/dashboard/starred_projects.rb
+15
-0
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+4
-0
No files found.
features/dashboard/starred_projects.feature
0 → 100644
View file @
b8d73315
@dashboard
Feature
:
Dashboard Starred Projects
Background
:
Given
I sign in as a user
And
public project
"Community"
And
I starred project
"Community"
And
I own project
"Shop"
And
I visit dashboard starred projects page
Scenario
:
I
should see projects list
Then
I should see project
"Community"
And
I should not see project
"Shop"
features/steps/dashboard/starred_projects.rb
0 → 100644
View file @
b8d73315
class
Spinach::Features::DashboardStarredProjects
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedProject
step
'I starred project "Community"'
do
current_user
.
toggle_star
(
Project
.
find_by
(
name:
'Community'
))
end
step
'I should not see project "Shop"'
do
within
'aside'
do
page
.
should_not
have_content
(
'Shop'
)
end
end
end
features/steps/shared/paths.rb
View file @
b8d73315
...
@@ -95,6 +95,10 @@ module SharedPaths
...
@@ -95,6 +95,10 @@ module SharedPaths
current_path
.
should
==
dashboard_groups_path
current_path
.
should
==
dashboard_groups_path
end
end
step
'I visit dashboard starred projects page'
do
visit
starred_dashboard_projects_path
end
# ----------------------------------------
# ----------------------------------------
# Profile
# Profile
# ----------------------------------------
# ----------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment