Sha256: 40e6abac92a2e60f38fa64800fc954fee5e5d68b2a4a1ee3f26c9298b389e4e6

Contents?: true

Size: 486 Bytes

Versions: 18

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_context 'with graphql schema test' do
  let(:variables)      { {} }
  let(:resource_names) { [:user] }
  let(:resource)       { nil }
  let(:controller)     { instance_double(GraphqlDevise::GraphqlController) }
  let(:context) do
    { current_resource: resource, controller: controller, resource_name: resource_names }
  end
  let(:response) do
    schema.execute(query, context: context, variables: variables).deep_symbolize_keys
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 spec/support/contexts/schema_test.rb
graphql_devise-1.4.0 spec/support/contexts/schema_test.rb
graphql_devise-1.3.0 spec/support/contexts/schema_test.rb
graphql_devise-1.2.0 spec/support/contexts/schema_test.rb
graphql_devise-1.1.1 spec/support/contexts/schema_test.rb
graphql_devise-1.1.0 spec/support/contexts/schema_test.rb
graphql_devise-1.0.1 spec/support/contexts/schema_test.rb
graphql_devise-1.0.0 spec/support/contexts/schema_test.rb
graphql_devise-0.18.2 spec/support/contexts/schema_test.rb
graphql_devise-0.18.1 spec/support/contexts/schema_test.rb
graphql_devise-0.18.0 spec/support/contexts/schema_test.rb
graphql_devise-0.17.1 spec/support/contexts/schema_test.rb
graphql_devise-0.17.0 spec/support/contexts/schema_test.rb
graphql_devise-0.16.0 spec/support/contexts/schema_test.rb
graphql_devise-0.15.0 spec/support/contexts/schema_test.rb
graphql_devise-0.14.3 spec/support/contexts/schema_test.rb
graphql_devise-0.14.2 spec/support/contexts/schema_test.rb
graphql_devise-0.14.1 spec/support/contexts/schema_test.rb