Sha256: 8e95b260ebc012a20d2f99e1186b2f30831efe6af092ddffc9cbe1cf93d1b0ab
Contents?: true
Size: 669 Bytes
Versions: 15
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' describe CASino::ProxyTicketProviderListener do let(:controller) { Object.new } let(:listener) { described_class.new(controller) } let(:xml) { "<foo><bar>bla</bar></foo>" } let(:render_parameters) { { xml: xml } } describe '#request_succeeded' do it 'tells the controller to render the response xml' do controller.should_receive(:render).with(render_parameters) listener.request_succeeded(xml) end end describe '#request_failed' do it 'tells the controller to render the response xml' do controller.should_receive(:render).with(render_parameters) listener.request_failed(xml) end end end
Version data entries
15 entries across 15 versions & 1 rubygems