Sha256: fcfd68b9e903a7bea5d7d97431c1338451e4ff7fbb2357f4ad53d53fc852c4fe

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true
RSpec.shared_examples_for 'a cake admin method' do
  let(:request) { instance_double(SoapyCake::Request) }

  it 'runs the request' do
    expect(SoapyCake::Request).to receive(:new)
      .with(:admin, service, cake_method, cake_opts || {}).and_return(request)
    expect(subject).to receive(:run).with(request)

    subject.public_send(method, *[opts || cake_opts].compact)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soapy_cake-1.25.1 spec/support/admin_method_example.rb