Sha256: b933f7e30a00b205a6c57b0be924e0ab392cf393dcc690b3440727990607847c

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true
RSpec.shared_examples_for 'a cake admin method' do
  let(:request) { double('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

5 entries across 5 versions & 1 rubygems

Version Path
soapy_cake-1.24.1 spec/support/admin_method_example.rb
soapy_cake-1.23.1 spec/support/admin_method_example.rb
soapy_cake-1.23.0 spec/support/admin_method_example.rb
soapy_cake-1.22.1 spec/support/admin_method_example.rb
soapy_cake-1.22.0 spec/support/admin_method_example.rb