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

Version Path
casino-3.0.4 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.7 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-3.0.3 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-3.0.2 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-3.0.1 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-3.0.0 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-3.0.0.pre.2 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-3.0.0.pre.1 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.6 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.5 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.4 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.3 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.2 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.1 spec/controllers/listener/proxy_ticket_provider_spec.rb
casino-2.0.0 spec/controllers/listener/proxy_ticket_provider_spec.rb