Sha256: a8c96f84525d11198da10f51b57fe2e33e9e7d8fb357fd3af9aa47baa265d9c8

Contents?: true

Size: 929 Bytes

Versions: 15

Compression:

Stored size: 929 Bytes

Contents

require 'spec_helper'

describe CASino::ProxyTicketsController do
  describe 'GET "serviceValidate"' do
    let(:params) { { service: 'https://www.example.com/', use_route: :casino } }
    it 'calls the process method of the ProxyTicketValidator' do
      CASino::ProxyTicketValidatorProcessor.any_instance.should_receive(:process).with(kind_of(Hash)) do |params|
        params.should == controller.params
        controller.render nothing: true
      end
      get :proxy_validate, params
    end
  end

  describe 'GET "proxy"' do
    let(:params) { { service: 'https://www.example.com/', use_route: :casino } }
    it 'calls the process method of the ProxyTicketProvider' do
      CASino::ProxyTicketProviderProcessor.any_instance.should_receive(:process).with(kind_of(Hash)) do |params|
        params.should == controller.params
        controller.render nothing: true
      end
      get :create, params
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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