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
Boxiang Sun
gitlab-ce
Commits
fe42de3a
Commit
fe42de3a
authored
Sep 15, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: features/ci/admin/runners_spec.rb
parent
29b3279a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
app/models/ci/runner.rb
app/models/ci/runner.rb
+1
-1
app/views/ci/admin/runners/index.html.haml
app/views/ci/admin/runners/index.html.haml
+1
-1
app/views/ci/admin/runners/show.html.haml
app/views/ci/admin/runners/show.html.haml
+1
-1
spec/features/ci/admin/runners_spec.rb
spec/features/ci/admin/runners_spec.rb
+6
-4
No files found.
app/models/ci/runner.rb
View file @
fe42de3a
...
@@ -37,7 +37,7 @@ module Ci
...
@@ -37,7 +37,7 @@ module Ci
acts_as_taggable
acts_as_taggable
def
self
.
search
(
query
)
def
self
.
search
(
query
)
where
(
'LOWER(
runners.token) LIKE :query OR LOWER(
runners.description) like :query'
,
where
(
'LOWER(
ci_runners.token) LIKE :query OR LOWER(ci_
runners.description) like :query'
,
query:
"%
#{
query
.
try
(
:downcase
)
}
%"
)
query:
"%
#{
query
.
try
(
:downcase
)
}
%"
)
end
end
...
...
app/views/ci/admin/runners/index.html.haml
View file @
fe42de3a
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
.append-bottom-20.clearfix
.append-bottom-20.clearfix
.pull-left
.pull-left
=
form_tag
ci_admin_runners_path
,
class:
'form-inline'
,
method: :get
do
=
form_tag
ci_admin_runners_path
,
id:
'runners-search'
,
class:
'form-inline'
,
method: :get
do
.form-group
.form-group
=
search_field_tag
:search
,
params
[
:search
],
class:
'form-control'
,
placeholder:
'Runner description or token'
=
search_field_tag
:search
,
params
[
:search
],
class:
'form-control'
,
placeholder:
'Runner description or token'
=
submit_tag
'Search'
,
class:
'btn'
=
submit_tag
'Search'
,
class:
'btn'
...
...
app/views/ci/admin/runners/show.html.haml
View file @
fe42de3a
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
%tr
%tr
%td
%td
=
form_tag
ci_admin_runner_path
(
@runner
),
class:
'form-inline'
,
method: :get
do
=
form_tag
ci_admin_runner_path
(
@runner
),
id:
'runner-projects-search'
,
class:
'form-inline'
,
method: :get
do
.form-group
.form-group
=
search_field_tag
:search
,
params
[
:search
],
class:
'form-control'
=
search_field_tag
:search
,
params
[
:search
],
class:
'form-control'
=
submit_tag
'Search'
,
class:
'btn'
=
submit_tag
'Search'
,
class:
'btn'
...
...
spec/features/ci/admin/runners_spec.rb
View file @
fe42de3a
...
@@ -23,8 +23,9 @@ describe "Admin Runners" do
...
@@ -23,8 +23,9 @@ describe "Admin Runners" do
FactoryGirl
.
create
:ci_runner
,
description:
'foo'
FactoryGirl
.
create
:ci_runner
,
description:
'foo'
FactoryGirl
.
create
:ci_runner
,
description:
'bar'
FactoryGirl
.
create
:ci_runner
,
description:
'bar'
fill_in
'search'
,
with:
'foo'
search_form
=
find
(
'#runners-search'
)
click_button
'Search'
search_form
.
fill_in
'search'
,
with:
'foo'
search_form
.
click_button
'Search'
end
end
it
{
expect
(
page
).
to
have_content
(
"foo"
)
}
it
{
expect
(
page
).
to
have_content
(
"foo"
)
}
...
@@ -52,8 +53,9 @@ describe "Admin Runners" do
...
@@ -52,8 +53,9 @@ describe "Admin Runners" do
describe
'search'
do
describe
'search'
do
before
do
before
do
fill_in
'search'
,
with:
'foo'
search_form
=
find
(
'#runner-projects-search'
)
click_button
'Search'
search_form
.
fill_in
'search'
,
with:
'foo'
search_form
.
click_button
'Search'
end
end
it
{
expect
(
page
).
to
have_content
(
"foo"
)
}
it
{
expect
(
page
).
to
have_content
(
"foo"
)
}
...
...
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