Sha256: a8e99d5e42c1ed79c6c468f878405c0548aa82fea1dbccb70427e361ffac5b15

Contents?: true

Size: 478 Bytes

Versions: 6

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'

RSpec.describe GraphqlDevise::MountMethod::OperationPreparers::MutationFieldSetter 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(:field).with(:authenticatable, field_type, null: false)

      prepared_operation
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graphql_devise-0.12.0 spec/services/mount_method/operation_preparers/mutation_field_setter_spec.rb
graphql_devise-0.11.4 spec/services/mount_method/operation_preparers/mutation_field_setter_spec.rb
graphql_devise-0.11.3 spec/services/mount_method/operation_preparers/mutation_field_setter_spec.rb
graphql_devise-0.11.2 spec/services/mount_method/operation_preparers/mutation_field_setter_spec.rb
graphql_devise-0.11.1 spec/services/mount_method/operation_preparers/mutation_field_setter_spec.rb
graphql_devise-0.11.0 spec/services/mount_method/operation_preparers/mutation_field_setter_spec.rb