Sha256: c49bd0964cf4b93652a1be3d548c182850585bdd040087ce9a456d5e63cb8e55

Contents?: true

Size: 489 Bytes

Versions: 26

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GraphqlDevise::MountMethod::OperationPreparers::ResolverTypeSetter do
  describe '#call' do
    subject(:prepared_operation) { described_class.new(field_type).call(operation) }

    let(:operation)  { double(:operation) }
    let(:field_type) { double(:type) }

    it 'sets a field for the mutation' do
      expect(operation).to receive(:type).with(field_type, null: false)

      prepared_operation
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-1.4.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-1.3.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-1.2.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-1.1.1 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-1.1.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-1.0.1 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-1.0.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.18.2 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.18.1 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.18.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.17.1 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.17.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.16.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.15.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.14.3 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.14.2 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.14.1 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.14.0 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb
graphql_devise-0.13.6 spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb