BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
runner.rb
app/models/ci/runner.rb
+1
-1
index.html.haml
app/views/ci/admin/runners/index.html.haml
+1
-1
show.html.haml
app/views/ci/admin/runners/show.html.haml
+1
-1
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
acts_as_taggable
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
)
}
%"
)
end
...
...
app/views/ci/admin/runners/index.html.haml
View file @
fe42de3a
...
...
@@ -25,7 +25,7 @@
.append-bottom-20.clearfix
.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
=
search_field_tag
:search
,
params
[
:search
],
class:
'form-control'
,
placeholder:
'Runner description or token'
=
submit_tag
'Search'
,
class:
'btn'
...
...
app/views/ci/admin/runners/show.html.haml
View file @
fe42de3a
...
...
@@ -74,7 +74,7 @@
%tr
%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
=
search_field_tag
:search
,
params
[
:search
],
class:
'form-control'
=
submit_tag
'Search'
,
class:
'btn'
...
...
spec/features/ci/admin/runners_spec.rb
View file @
fe42de3a
...
...
@@ -23,8 +23,9 @@ describe "Admin Runners" do
FactoryGirl
.
create
:ci_runner
,
description:
'foo'
FactoryGirl
.
create
:ci_runner
,
description:
'bar'
fill_in
'search'
,
with:
'foo'
click_button
'Search'
search_form
=
find
(
'#runners-search'
)
search_form
.
fill_in
'search'
,
with:
'foo'
search_form
.
click_button
'Search'
end
it
{
expect
(
page
).
to
have_content
(
"foo"
)
}
...
...
@@ -52,8 +53,9 @@ describe "Admin Runners" do
describe
'search'
do
before
do
fill_in
'search'
,
with:
'foo'
click_button
'Search'
search_form
=
find
(
'#runner-projects-search'
)
search_form
.
fill_in
'search'
,
with:
'foo'
search_form
.
click_button
'Search'
end
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