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
de040048
Commit
de040048
authored
Jun 08, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer string for describe, feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12321029
parent
9e14ebe6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
runner_spec.rb
spec/models/ci/runner_spec.rb
+5
-5
No files found.
spec/models/ci/runner_spec.rb
View file @
de040048
...
...
@@ -36,7 +36,7 @@ describe Ci::Runner, models: true do
end
end
describe
:assign_to
do
describe
'#assign_to'
do
let!
(
:project
)
{
FactoryGirl
.
create
:empty_project
}
let!
(
:shared_runner
)
{
FactoryGirl
.
create
(
:ci_runner
,
:shared
)
}
...
...
@@ -49,7 +49,7 @@ describe Ci::Runner, models: true do
it
{
expect
(
shared_runner
.
only_for?
(
project
)).
to
be_truthy
}
end
describe
:online
do
describe
'.online'
do
subject
{
Ci
::
Runner
.
online
}
before
do
...
...
@@ -60,7 +60,7 @@ describe Ci::Runner, models: true do
it
{
is_expected
.
to
eq
([
@runner2
])}
end
describe
:online?
do
describe
'#online?'
do
let
(
:runner
)
{
FactoryGirl
.
create
(
:ci_runner
,
:shared
)
}
subject
{
runner
.
online?
}
...
...
@@ -90,7 +90,7 @@ describe Ci::Runner, models: true do
end
end
describe
:status
do
describe
'#status'
do
let
(
:runner
)
{
FactoryGirl
.
create
(
:ci_runner
,
:shared
,
contacted_at:
1
.
second
.
ago
)
}
subject
{
runner
.
status
}
...
...
@@ -128,7 +128,7 @@ describe Ci::Runner, models: true do
end
end
describe
:specific_for
do
describe
'.specific_for'
do
let
(
:runner
)
{
create
(
:ci_runner
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:another_project
)
{
create
(
:project
)
}
...
...
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