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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
2d25faf2
Commit
2d25faf2
authored
Jul 24, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix star tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
420ba211
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
features/project/star.feature
features/project/star.feature
+2
-2
features/steps/project/star.rb
features/steps/project/star.rb
+4
-0
No files found.
features/project/star.feature
View file @
2d25faf2
...
@@ -2,12 +2,12 @@ Feature: Project Star
...
@@ -2,12 +2,12 @@ Feature: Project Star
Scenario
:
New projects have 0 stars
Scenario
:
New projects have 0 stars
Given
public project
"Community"
Given
public project
"Community"
When
I visit project
"Community"
page
When
I visit project
"Community"
page
Then
The project has
0
stars
Then
The project has
no
stars
Scenario
:
Empty projects show star count
Scenario
:
Empty projects show star count
Given
public empty project
"Empty Public Project"
Given
public empty project
"Empty Public Project"
When
I visit empty project page
When
I visit empty project page
Then
The project has
0
stars
Then
The project has
no
stars
Scenario
:
Signed off users can't star projects
Scenario
:
Signed off users can't star projects
Given
public project
"Community"
Given
public project
"Community"
...
...
features/steps/project/star.rb
View file @
2d25faf2
...
@@ -4,6 +4,10 @@ class Spinach::Features::ProjectStar < Spinach::FeatureSteps
...
@@ -4,6 +4,10 @@ class Spinach::Features::ProjectStar < Spinach::FeatureSteps
include
SharedPaths
include
SharedPaths
include
SharedUser
include
SharedUser
step
"The project has no stars"
do
page
.
should_not
have_content
'.star-buttons'
end
step
"The project has 0 stars"
do
step
"The project has 0 stars"
do
has_n_stars
(
0
)
has_n_stars
(
0
)
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