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
1bba24a0
Commit
1bba24a0
authored
Jun 01, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky test based on order of tag_list
parent
9a2d5688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/graphql/mutations/ci/runner/update_spec.rb
spec/graphql/mutations/ci/runner/update_spec.rb
+3
-1
No files found.
spec/graphql/mutations/ci/runner/update_spec.rb
View file @
1bba24a0
...
...
@@ -66,14 +66,16 @@ RSpec.describe Mutations::Ci::Runner::Update do
context
'with valid arguments'
do
it
'updates runner with correct values'
do
expected_attributes
=
mutation_params
.
except
(
:id
)
expected_attributes
=
mutation_params
.
except
(
:id
,
:tag_list
)
subject
expect
(
subject
[
:errors
]).
to
be_empty
expect
(
subject
[
:runner
]).
to
be_an_instance_of
(
Ci
::
Runner
)
expect
(
subject
[
:runner
]).
to
have_attributes
(
expected_attributes
)
expect
(
subject
[
:runner
].
tag_list
).
to
contain_exactly
(
*
mutation_params
[
:tag_list
])
expect
(
runner
.
reload
).
to
have_attributes
(
expected_attributes
)
expect
(
runner
.
tag_list
).
to
contain_exactly
(
*
mutation_params
[
:tag_list
])
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