Sha256: b8f7527fd3ca4bce1d23ad03336623f4400f45fd41f499cc6a7c638251eb1ec0
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
module OmniAuth module Test module StrategyMacros def sets_an_auth_hash it 'should set an auth hash' do last_request.env['rack.auth'].should be_kind_of(Hash) end end def sets_provider_to(provider) it "should set the provider to #{provider}" do (last_request.env['rack.auth'] || {})['provider'].should == provider end end def sets_uid_to(uid) it "should set the UID to #{uid}" do (last_request.env['rack.auth'] || {})['uid'].should == uid end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oa-core-0.1.2 | lib/omniauth/test/strategy_macros.rb |