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
Léo-Paul Géneau
gitlab-ce
Commits
dcb67951
Commit
dcb67951
authored
May 03, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make assertions about runner_type in spec/requests/api/runner_spec.rb
parent
67f25c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
spec/requests/api/runner_spec.rb
spec/requests/api/runner_spec.rb
+9
-4
No files found.
spec/requests/api/runner_spec.rb
View file @
dcb67951
...
...
@@ -40,6 +40,7 @@ describe API::Runner do
expect
(
json_response
[
'token'
]).
to
eq
(
runner
.
token
)
expect
(
runner
.
run_untagged
).
to
be
true
expect
(
runner
.
token
).
not_to
eq
(
registration_token
)
expect
(
runner
).
to
be_instance_type
end
context
'when project token is used'
do
...
...
@@ -50,8 +51,10 @@ describe API::Runner do
expect
(
response
).
to
have_gitlab_http_status
201
expect
(
project
.
runners
.
size
).
to
eq
(
1
)
expect
(
Ci
::
Runner
.
first
.
token
).
not_to
eq
(
registration_token
)
expect
(
Ci
::
Runner
.
first
.
token
).
not_to
eq
(
project
.
runners_token
)
runner
=
Ci
::
Runner
.
first
expect
(
runner
.
token
).
not_to
eq
(
registration_token
)
expect
(
runner
.
token
).
not_to
eq
(
project
.
runners_token
)
expect
(
runner
).
to
be_project_type
end
end
...
...
@@ -63,8 +66,10 @@ describe API::Runner do
expect
(
response
).
to
have_http_status
201
expect
(
group
.
runners
.
size
).
to
eq
(
1
)
expect
(
Ci
::
Runner
.
first
.
token
).
not_to
eq
(
registration_token
)
expect
(
Ci
::
Runner
.
first
.
token
).
not_to
eq
(
group
.
runners_token
)
runner
=
Ci
::
Runner
.
first
expect
(
runner
.
token
).
not_to
eq
(
registration_token
)
expect
(
runner
.
token
).
not_to
eq
(
group
.
runners_token
)
expect
(
runner
).
to
be_group_type
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