Sha256: de70ec70ada013b696d61792f4857c4711dfbdb06f0d3f9b9bb0099d1f796133

Contents?: true

Size: 901 Bytes

Versions: 12

Compression:

Stored size: 901 Bytes

Contents

require 'spec_helper'

describe CASino::ProxyTicketsController do
  describe 'GET "serviceValidate"' do
    let(:params) { { service: 'https://www.example.com/' } }
    it 'calls the process method of the ProxyTicketValidator' do
      CASinoCore::Processor::ProxyTicketValidator.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/' } }
    it 'calls the process method of the ProxyTicketProvider' do
      CASinoCore::Processor::ProxyTicketProvider.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

12 entries across 12 versions & 1 rubygems

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