Sha256: bc6afa5ee3474e6f562da272139e2e383ca1480dedac3373e7aa04b8637fb7eb
Contents?: true
Size: 1022 Bytes
Versions: 2
Compression:
Stored size: 1022 Bytes
Contents
require 'spec_helper' describe ::ApplicationController do it 'should have the correct new_session_path for users' do expect(controller.new_session_path(:user)).to eq('/g5_auth/users/sign_in') end it 'should have the correct destroy_session_path for users' do expect(controller.destroy_session_path(:user)).to eq('/g5_auth/users/sign_out') end it 'should have the correct g5_authorize_path for users' do expect(controller.g5_authorize_path(:user)).to eq('/g5_auth/users/auth/g5') end it 'should have the correct g5_callback_path for users' do expect(controller.g5_callback_path(:user)).to eq('/g5_auth/users/auth/g5/callback') end context 'when strict token validation is enabled' do before { G5Authenticatable.strict_token_validation = true } it_should_behave_like 'a secure controller' end context 'when strict token validation is disabled' do before { G5Authenticatable.strict_token_validation = false } it_should_behave_like 'a secure controller' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
g5_authenticatable-0.4.2 | spec/controllers/application_controller_spec.rb |
g5_authenticatable-0.4.1 | spec/controllers/application_controller_spec.rb |