Sha256: 0ac2f50d0cae4dab4049ef923f9a60671c0f9988f41e78cddfac4f0d96810c97
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true RSpec.shared_context 'with graphql query request' do let(:headers) { {} } let(:variables) { {} } let(:graphql_params) do { params: { query: query, variables: variables }, headers: headers } end def post_request(path = '/api/v1/graphql_auth') send_request(path, :post) end def get_request(path = '/api/v1/graphql_auth') send_request(path, :get) end def send_request(path, method) public_send(method, path, **graphql_params) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql_devise-2.0.0 | spec/support/contexts/graphql_request.rb |