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
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
Hide 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'
describe
Ci
::
RunnersHelper
do
it
"returns - not contacted yet"
do
runner
=
FactoryGirl
.
build
:runner
runner_status_icon
(
runner
).
should
include
(
"not connected yet"
)
runner
=
FactoryGirl
.
build
:
ci_
runner
expect
(
runner_status_icon
(
runner
)).
to
include
(
"not connected yet"
)
end
it
"returns offline text"
do
runner
=
FactoryGirl
.
build
(
:runner
,
contacted_at:
1
.
day
.
ago
,
active:
true
)
runner_status_icon
(
runner
).
should
include
(
"Runner is offline"
)
runner
=
FactoryGirl
.
build
(
:
ci_
runner
,
contacted_at:
1
.
day
.
ago
,
active:
true
)
expect
(
runner_status_icon
(
runner
)).
to
include
(
"Runner is offline"
)
end
it
"returns online text"
do
runner
=
FactoryGirl
.
build
(
:runner
,
contacted_at:
1
.
hour
.
ago
,
active:
true
)
runner_status_icon
(
runner
).
should
include
(
"Runner is online"
)
runner
=
FactoryGirl
.
build
(
:
ci_
runner
,
contacted_at:
1
.
hour
.
ago
,
active:
true
)
expect
(
runner_status_icon
(
runner
)).
to
include
(
"Runner is online"
)
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