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
1fd58c84
Commit
1fd58c84
authored
Sep 12, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7741 from Razer6/refactor/remove_duplicate_steps
[Refactor] Remove duplicated labels step
parents
5ac01994
8321a4d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
features/project/issues/labels.feature
features/project/issues/labels.feature
+2
-2
features/steps/project/labels.rb
features/steps/project/labels.rb
+6
-12
No files found.
features/project/issues/labels.feature
View file @
1fd58c84
...
@@ -6,8 +6,8 @@ Feature: Project Labels
...
@@ -6,8 +6,8 @@ Feature: Project Labels
Given
I visit project
"Shop"
labels page
Given
I visit project
"Shop"
labels page
Scenario
:
I
should see labels list
Scenario
:
I
should see labels list
Then
I should see label
"bug"
Then
I should see label
'bug'
And
I should see label
"feature"
And
I should see label
'feature'
Scenario
:
I
create new label
Scenario
:
I
create new label
Given
I visit project
"Shop"
new label page
Given
I visit project
"Shop"
new label page
...
...
features/steps/project/labels.rb
View file @
1fd58c84
...
@@ -3,18 +3,6 @@ class ProjectLabels < Spinach::FeatureSteps
...
@@ -3,18 +3,6 @@ class ProjectLabels < Spinach::FeatureSteps
include
SharedProject
include
SharedProject
include
SharedPaths
include
SharedPaths
step
'I should see label "bug"'
do
within
".manage-labels-list"
do
page
.
should
have_content
"bug"
end
end
step
'I should see label "feature"'
do
within
".manage-labels-list"
do
page
.
should
have_content
"feature"
end
end
step
'I visit \'bug\' label edit page'
do
step
'I visit \'bug\' label edit page'
do
visit
edit_project_label_path
(
project
,
bug_label
)
visit
edit_project_label_path
(
project
,
bug_label
)
end
end
...
@@ -71,6 +59,12 @@ class ProjectLabels < Spinach::FeatureSteps
...
@@ -71,6 +59,12 @@ class ProjectLabels < Spinach::FeatureSteps
end
end
end
end
step
'I should see label \'feature\''
do
within
'.manage-labels-list'
do
page
.
should
have_content
'feature'
end
end
step
'I should see label \'bug\''
do
step
'I should see label \'bug\''
do
within
'.manage-labels-list'
do
within
'.manage-labels-list'
do
page
.
should
have_content
'bug'
page
.
should
have_content
'bug'
...
...
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