Commit 00bf6a60 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Pass GraphQL query as a block to graphql_mutation

parent 873d6ecd
...@@ -15,16 +15,16 @@ describe 'Setting the status of an alert' do ...@@ -15,16 +15,16 @@ describe 'Setting the status of an alert' do
project_path: project.full_path, project_path: project.full_path,
iid: alert.iid.to_s iid: alert.iid.to_s
} }
graphql_mutation(:update_alert_status, variables.merge(input), graphql_mutation(:update_alert_status, variables.merge(input)) do
<<~QL <<~QL
clientMutationId clientMutationId
errors errors
alert { alert {
iid iid
status status
} }
QL QL
) end
end end
let(:mutation_response) { graphql_mutation_response(:update_alert_status) } let(:mutation_response) { graphql_mutation_response(:update_alert_status) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment