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