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

Version Path
casino-1.3.2 spec/controllers/listener/ticket_validator_spec.rb
casino-1.3.1 spec/controllers/listener/ticket_validator_spec.rb
casino-1.3.0 spec/controllers/listener/ticket_validator_spec.rb
casino-1.2.2 spec/controllers/listener/ticket_validator_spec.rb
casino-1.2.1 spec/controllers/listener/ticket_validator_spec.rb
casino-1.2.0 spec/controllers/listener/ticket_validator_spec.rb
casino-1.1.0 spec/controllers/listener/ticket_validator_spec.rb
casino-1.0.0 spec/controllers/listener/ticket_validator_spec.rb
casino-0.0.4 spec/controllers/listener/ticket_validator_spec.rb
casino-0.0.3 spec/controllers/listener/ticket_validator_spec.rb
casino-0.0.2 spec/controllers/listener/ticket_validator_spec.rb
casino-0.0.1 spec/controllers/listener/ticket_validator_spec.rb