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
1
Merge Requests
1
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
nexedi
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spec/models/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
project
.
runners
<<
specific_runner
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
specific_runner
}).
to
be_truthy
end
it
'returns false if match cannot be found'
do
project
.
runners
<<
specific_runner
expect
(
project
.
any_runners?
{
false
}).
to
be_falsey
end
end
context
'for shared runners enabled'
do
...
...
@@ -1179,6 +1184,11 @@ describe Project do
shared_runner
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
shared_runner
}).
to
be_truthy
end
it
'returns false if match cannot be found'
do
shared_runner
expect
(
project
.
any_runners?
{
false
}).
to
be_falsey
end
end
end
...
...
@@ -1212,6 +1222,11 @@ describe Project do
group_runner
expect
(
project
.
any_runners?
{
|
runner
|
runner
==
group_runner
}).
to
be_truthy
end
it
'returns false if match cannot be found'
do
group_runner
expect
(
project
.
any_runners?
{
false
}).
to
be_falsey
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