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