Sha256: ddc332b4f90fc7b435b2813e13628622a9a7b77b51c2366f974574b63e7d2b61
Contents?: true
Size: 447 Bytes
Versions: 5
Compression:
Stored size: 447 Bytes
Contents
require 'spec_helper' RSpec.describe GraphqlDevise::MountMethod::OperationPreparers::ResourceNameSetter do describe '#call' do subject(:prepared_operation) { described_class.new(mapping_name).call(operation) } let(:operation) { double(:operation) } let(:mapping_name) { 'user' } it 'sets a gql name to the operation' do expect(prepared_operation.instance_variable_get(:@resource_name)).to eq(:user) end end end
Version data entries
5 entries across 5 versions & 1 rubygems