Sha256: 6f404179e5b4916fd077d15cdd35d2489c2ebd238edff329bb783b979de06a0c
Contents?: true
Size: 899 Bytes
Versions: 12
Compression:
Stored size: 899 Bytes
Contents
require 'spec_helper' describe CASino::ServiceTicketsController do describe 'GET "validate"' do let(:params) { { service: 'https://www.example.com/' } } it 'calls the process method of the LegacyValidator' do CASinoCore::Processor::LegacyValidator.any_instance.should_receive(:process).with(kind_of(Hash)) do |params| params.should == controller.params controller.render nothing: true end get :validate, params end end describe 'GET "serviceValidate"' do let(:params) { { service: 'https://www.example.com/' } } it 'calls the process method of the LegacyValidator' do CASinoCore::Processor::ServiceTicketValidator.any_instance.should_receive(:process).with(kind_of(Hash)) do |params| params.should == controller.params controller.render nothing: true end get :service_validate, params end end end
Version data entries
12 entries across 12 versions & 1 rubygems