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
329d535b
Commit
329d535b
authored
Apr 27, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add extra spec for Project#any_runners? to test block properly
parent
ff219759
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
project_spec.rb
spec/models/project_spec.rb
+15
-0
No files found.
spec/models/project_spec.rb
View file @
329d535b
...
@@ -1165,6 +1165,11 @@ describe Project do
...
@@ -1165,6 +1165,11 @@ describe Project do
project
.
runners
<<
specific_runner
project
.
runners
<<
specific_runner
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
specific_runner
}).
to
be_truthy
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
specific_runner
}).
to
be_truthy
end
end
it
'returns false if match cannot be found'
do
project
.
runners
<<
specific_runner
expect
(
project
.
any_runners?
{
false
}).
to
be_falsey
end
end
end
context
'for shared runners enabled'
do
context
'for shared runners enabled'
do
...
@@ -1179,6 +1184,11 @@ describe Project do
...
@@ -1179,6 +1184,11 @@ describe Project do
shared_runner
shared_runner
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
shared_runner
}).
to
be_truthy
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
shared_runner
}).
to
be_truthy
end
end
it
'returns false if match cannot be found'
do
shared_runner
expect
(
project
.
any_runners?
{
false
}).
to
be_falsey
end
end
end
end
end
...
@@ -1212,6 +1222,11 @@ describe Project do
...
@@ -1212,6 +1222,11 @@ describe Project do
group_runner
group_runner
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
group_runner
}).
to
be_truthy
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
group_runner
}).
to
be_truthy
end
end
it
'returns false if match cannot be found'
do
group_runner
expect
(
project
.
any_runners?
{
false
}).
to
be_falsey
end
end
end
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