Sha256: e9c919fec2e9e0b9aceb0259d3b4fa89cd569f9912ac9e423c501176e99114e9

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

module OmniAuth
  
  module Test
    
    module StrategyMacros
      
      def sets_an_auth_hash
        it 'should set an auth hash' do
          last_request['auth'].should be_kind_of(Hash)
        end
      end
      
      def sets_provider_to(provider)
        it "should set the provider to #{provider}" do
          (last_request['auth'] || {})['provider'].should == provider
        end
      end
      
      def sets_uid_to(uid)
        it "should set the UID to #{uid}" do
          (last_request['auth'] || {})['uid'].should == uid
        end
      end
      
    end
    
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oa-core-0.1.1 lib/omniauth/test/strategy_macros.rb
oa-core-0.1.0 lib/omniauth/test/strategy_macros.rb
oa-core-0.0.5 lib/omniauth/test/strategy_macros.rb
oa-core-0.0.4 lib/omniauth/test/strategy_macros.rb