diff options
Diffstat (limited to 'spec/requests/api/graphql/work_item_spec.rb')
-rw-r--r-- | spec/requests/api/graphql/work_item_spec.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/spec/requests/api/graphql/work_item_spec.rb b/spec/requests/api/graphql/work_item_spec.rb index e4bb4109c76..2105e479ed2 100644 --- a/spec/requests/api/graphql/work_item_spec.rb +++ b/spec/requests/api/graphql/work_item_spec.rb @@ -128,10 +128,11 @@ RSpec.describe 'Query.work_item(id)' do hash_including( 'type' => 'HIERARCHY', 'parent' => nil, - 'children' => { 'nodes' => match_array([ - hash_including('id' => child_link1.work_item.to_gid.to_s), - hash_including('id' => child_link2.work_item.to_gid.to_s) - ]) } + 'children' => { 'nodes' => match_array( + [ + hash_including('id' => child_link1.work_item.to_gid.to_s), + hash_including('id' => child_link2.work_item.to_gid.to_s) + ]) } ) ) ) @@ -161,9 +162,10 @@ RSpec.describe 'Query.work_item(id)' do hash_including( 'type' => 'HIERARCHY', 'parent' => nil, - 'children' => { 'nodes' => match_array([ - hash_including('id' => child_link1.work_item.to_gid.to_s) - ]) } + 'children' => { 'nodes' => match_array( + [ + hash_including('id' => child_link1.work_item.to_gid.to_s) + ]) } ) ) ) |