Sha256: 30c7aea690df7c9c1f236463dab083b840bc3e1dd612e6cbc44859a51e500fab
Contents?: true
Size: 795 Bytes
Versions: 4
Compression:
Stored size: 795 Bytes
Contents
require 'spec_helper' describe OmniAuth::Strategies::CAS::ServiceTicketValidator do let(:strategy_stub) do stub('strategy stub', service_validate_url: 'https://example.org/serviceValidate' ) end let(:provider_options) do stub('provider options', disable_ssl_verification?: false, ca_path: '/etc/ssl/certsZOMG' ) end let(:validator) do OmniAuth::Strategies::CAS::ServiceTicketValidator.new( strategy_stub, provider_options, '/foo', nil ) end describe '#user_info' do subject do stub_request(:get, 'https://example.org/serviceValidate?').to_return(status: 200, body: '') validator.user_info end it 'should use the configured CA path' do provider_options.should_receive :ca_path subject end end end
Version data entries
4 entries across 4 versions & 1 rubygems