Sha256: d610e21654fd6896ab5d2d738e6d5c18481357edbb540a029c2c17ea2e5458fd

Contents?: true

Size: 368 Bytes

Versions: 13

Compression:

Stored size: 368 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
soapy_cake-1.21.0 spec/support/admin_method_example.rb
soapy_cake-1.20.0 spec/support/admin_method_example.rb
soapy_cake-1.19.0 spec/support/admin_method_example.rb
soapy_cake-1.18.1 spec/support/admin_method_example.rb
soapy_cake-1.18.0 spec/support/admin_method_example.rb
soapy_cake-1.16.2 spec/support/admin_method_example.rb
soapy_cake-1.16.1 spec/support/admin_method_example.rb
soapy_cake-1.16.0 spec/support/admin_method_example.rb
soapy_cake-1.15.0 spec/support/admin_method_example.rb
soapy_cake-1.14.4 spec/support/admin_method_example.rb
soapy_cake-1.14.3 spec/support/admin_method_example.rb
soapy_cake-1.14.2 spec/support/admin_method_example.rb
soapy_cake-1.14.1 spec/support/admin_method_example.rb