Sha256: 157ee6eb80913ec54c07f0fb449dbdee91ea8a243bfab2653eef23a6b6bf3e7e
Contents?: true
Size: 679 Bytes
Versions: 12
Compression:
Stored size: 679 Bytes
Contents
require 'spec_helper' describe CASino::Listener::TicketValidator do let(:controller) { Object.new } let(:listener) { described_class.new(controller) } let(:xml) { "<foo><bar>bla</bar></foo>" } let(:render_parameters) { { xml: xml } } describe '#validation_succeeded' do it 'tells the controller to render the response xml' do controller.should_receive(:render).with(render_parameters) listener.validation_succeeded(xml) end end describe '#validation_failed' do it 'tells the controller to render the response xml' do controller.should_receive(:render).with(render_parameters) listener.validation_failed(xml) end end end
Version data entries
12 entries across 12 versions & 1 rubygems