Sha256: a61f8298bfb789465845effcfe59ef59ee75e3edd598b8484968be29b45a68c9

Contents?: true

Size: 457 Bytes

Versions: 9

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

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

    let(:operation)    { double(:operation) }
    let(:mapping_name) { 'user_login' }

    it 'sets a gql name to the operation' do
      expect(operation).to receive(:graphql_name).with('UserLogin')

      prepared_operation
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
graphql_devise-0.12.3 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.12.2 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.12.1 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.12.0 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.11.4 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.11.3 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.11.2 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.11.1 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb
graphql_devise-0.11.0 spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb