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
Jérome Perrin
gitlab-ce
Commits
051dc1d2
Commit
051dc1d2
authored
May 24, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing tests
parent
e7ca709a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/labels_helper.rb
app/helpers/labels_helper.rb
+1
-1
features/steps/project/issues/labels.rb
features/steps/project/issues/labels.rb
+1
-1
features/steps/project/labels.rb
features/steps/project/labels.rb
+1
-1
No files found.
app/helpers/labels_helper.rb
View file @
051dc1d2
...
@@ -32,7 +32,7 @@ module LabelsHelper
...
@@ -32,7 +32,7 @@ module LabelsHelper
# link_to_label(label) { "My Custom Label Text" }
# link_to_label(label) { "My Custom Label Text" }
#
#
# Returns a String
# Returns a String
def
link_to_label
(
label
,
project:
nil
,
type: :issue
,
tooltip:
true
,
css_class:
''
,
&
block
)
def
link_to_label
(
label
,
project:
nil
,
type: :issue
,
tooltip:
true
,
css_class:
nil
,
&
block
)
project
||=
@project
||
label
.
project
project
||=
@project
||
label
.
project
link
=
send
(
"namespace_project_
#{
type
.
to_s
.
pluralize
}
_path"
,
link
=
send
(
"namespace_project_
#{
type
.
to_s
.
pluralize
}
_path"
,
project
.
namespace
,
project
.
namespace
,
...
...
features/steps/project/issues/labels.rb
View file @
051dc1d2
...
@@ -9,7 +9,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
...
@@ -9,7 +9,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
step
'I remove label \'bug\''
do
step
'I remove label \'bug\''
do
page
.
within
"#label_
#{
bug_label
.
id
}
"
do
page
.
within
"#label_
#{
bug_label
.
id
}
"
do
click_link
'Delete'
first
(
:link
,
'Delete'
).
click
end
end
end
end
...
...
features/steps/project/labels.rb
View file @
051dc1d2
...
@@ -29,6 +29,6 @@ class Spinach::Features::Labels < Spinach::FeatureSteps
...
@@ -29,6 +29,6 @@ class Spinach::Features::Labels < Spinach::FeatureSteps
private
private
def
subscribe_button
def
subscribe_button
first
(
'.label-subscribe-button span'
)
first
(
'.label-subscribe-button span'
,
visible:
true
)
end
end
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