spec/omniauth/strategies/dice_integrations_spec.rb in omniauth-dice-0.1.6 vs spec/omniauth/strategies/dice_integrations_spec.rb in omniauth-dice-0.1.7

- old
+ new

@@ -176,9 +176,17 @@ get '/auth/dice' follow_redirect! raw_info = last_request.env['rack.session']['omniauth.auth']['extra']['raw_info'] expect(raw_info).to eq(valid_user_xml) end + + it 'should allow accessing auth_hash values via methods' do + header 'Ssl-Client-Cert', user_cert + get '/auth/dice' + follow_redirect! + expect(last_request.env['rack.session']['omniauth.auth']).to be_kind_of(Hash) + expect(last_request.env['rack.session']['omniauth.auth'].provider).to eq('dice') + end end context 'fail' do it 'should raise a 404 with text for a non-existent user DN' do stub_request(:get, "https://example.org:3000/dn/cn=ruby%20certificate%20rbcert,dc=ruby-lang,dc=org/info.json?issuerDN=cn=ruby%20ca,dc=ruby-lang,dc=org").