Sha256: 49b6ec6086b53fdeb5c2cce1851ef0bd0f13f54acd22290a476ed76985568bc5
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 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, *[cake_opts].compact) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soapy_cake-1.14.0 | spec/support/admin_method_example.rb |