Sha256: 19284c435da71d2d196a9ea89752dd3336b6d446cdc0e3836a23674e8aab19f5
Contents?: true
Size: 841 Bytes
Versions: 8
Compression:
Stored size: 841 Bytes
Contents
module OmniAuth module Test module StrategyMacros def sets_an_auth_hash it 'should set an auth hash' do last_request.env['omniauth.auth'].should be_kind_of(Hash) end end def sets_provider_to(provider) it "should set the provider to #{provider}" do (last_request.env['omniauth.auth'] || {})['provider'].should == provider end end def sets_uid_to(uid) it "should set the UID to #{uid}" do (last_request.env['omniauth.auth'] || {})['uid'].should == uid end end def sets_user_info_to(user_info) it "should set the user_info to #{user_info}" do (last_request.env['omniauth.auth'] || {})['user_info'].should == user_info end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems