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
project_path: project.full_path,
iid: alert.iid.to_s
}
graphql_mutation(:update_alert_status, variables.merge(input),
<<~QL
clientMutationId
errors
alert {
iid
status
}
QL
)
graphql_mutation(:update_alert_status, variables.merge(input)) do
<<~QL
clientMutationId
errors
alert {
iid
status
}
QL
end
end
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