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
Tatuya Kamada
gitlab-ce
Commits
10cf1050
Commit
10cf1050
authored
Sep 15, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: helpers/ci/runners_helper_spec.rb
parent
5f315bd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/helpers/ci/runners_helper_spec.rb
spec/helpers/ci/runners_helper_spec.rb
+6
-6
No files found.
spec/helpers/ci/runners_helper_spec.rb
View file @
10cf1050
...
@@ -2,17 +2,17 @@ require 'spec_helper'
...
@@ -2,17 +2,17 @@ require 'spec_helper'
describe
Ci
::
RunnersHelper
do
describe
Ci
::
RunnersHelper
do
it
"returns - not contacted yet"
do
it
"returns - not contacted yet"
do
runner
=
FactoryGirl
.
build
:runner
runner
=
FactoryGirl
.
build
:
ci_
runner
runner_status_icon
(
runner
).
should
include
(
"not connected yet"
)
expect
(
runner_status_icon
(
runner
)).
to
include
(
"not connected yet"
)
end
end
it
"returns offline text"
do
it
"returns offline text"
do
runner
=
FactoryGirl
.
build
(
:runner
,
contacted_at:
1
.
day
.
ago
,
active:
true
)
runner
=
FactoryGirl
.
build
(
:
ci_
runner
,
contacted_at:
1
.
day
.
ago
,
active:
true
)
runner_status_icon
(
runner
).
should
include
(
"Runner is offline"
)
expect
(
runner_status_icon
(
runner
)).
to
include
(
"Runner is offline"
)
end
end
it
"returns online text"
do
it
"returns online text"
do
runner
=
FactoryGirl
.
build
(
:runner
,
contacted_at:
1
.
hour
.
ago
,
active:
true
)
runner
=
FactoryGirl
.
build
(
:
ci_
runner
,
contacted_at:
1
.
hour
.
ago
,
active:
true
)
runner_status_icon
(
runner
).
should
include
(
"Runner is online"
)
expect
(
runner_status_icon
(
runner
)).
to
include
(
"Runner is online"
)
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