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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
d3ea5387
Commit
d3ea5387
authored
Jul 26, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for trending/starred pages
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
974b5a7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
+27
-4
app/views/explore/projects/_project.html.haml
app/views/explore/projects/_project.html.haml
+1
-1
features/explore/projects.feature
features/explore/projects.feature
+14
-0
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+7
-3
features/steps/shared/project.rb
features/steps/shared/project.rb
+5
-0
No files found.
app/views/explore/projects/_project.html.haml
View file @
d3ea5387
...
...
@@ -21,5 +21,5 @@
=
link_to
pluralize
(
project
.
repository
.
tag_names
.
count
,
'tag'
),
project_tags_path
(
project
)
-
else
%i
.icon-warning-sign
Empty repository
Empty repository
features/explore/projects.feature
View file @
d3ea5387
...
...
@@ -100,3 +100,17 @@ Feature: Explore Projects Feature
And
I visit
"Internal"
merge requests page
And
project
"Internal"
has
"Feature implemented"
open merge request
Then
I should see list of merge requests for
"Internal"
project
Scenario
:
Trending page
Given
I sign in as a user
And
project
"Community"
has comments
When
I visit the explore trending projects
Then
I should see project
"Community"
And
I should not see project
"Internal"
And
I should not see project
"Enterprise"
Scenario
:
Most starred page
Given
I sign in as a user
When
I visit the explore starred projects
Then
I should see project
"Community"
And
I should see project
"Internal"
features/steps/shared/paths.rb
View file @
d3ea5387
...
...
@@ -355,9 +355,13 @@ module SharedPaths
visit
explore_projects_path
end
# ----------------------------------------
# Public Groups
# ----------------------------------------
step
'I visit the explore trending projects'
do
visit
trending_explore_projects_path
end
step
'I visit the explore starred projects'
do
visit
starred_explore_projects_path
end
step
'I visit the public groups area'
do
visit
explore_groups_path
...
...
features/steps/shared/project.rb
View file @
d3ea5387
...
...
@@ -130,4 +130,9 @@ module SharedProject
step
'public empty project "Empty Public Project"'
do
create
:empty_project
,
:public
,
name:
"Empty Public Project"
end
step
'project "Community" has comments'
do
project
=
Project
.
find_by
(
name:
"Community"
)
2
.
times
{
create
(
:note_on_issue
,
project:
project
)
}
end
end
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