Sha256: 4c07f74e1767972dab5a732b252281f3d76fe8fc6d479356c976c3b883598dcd

Contents?: true

Size: 505 Bytes

Versions: 50

Compression:

Stored size: 505 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

module SessionTest
  class PersistenceTest < ActiveSupport::TestCase
    def test_find
      ben = users(:ben)
      assert !UserSession.find
      http_basic_auth_for(ben) { assert UserSession.find }
      set_cookie_for(ben)
      assert UserSession.find
      unset_cookie
      set_session_for(ben)
      session = UserSession.find
      assert session
    end
    
    def test_persisting
      # tested thoroughly in test_find
    end
  end
end

Version data entries

50 entries across 50 versions & 15 rubygems

Version Path
authlogic-2.1.11 test/session_test/persistence_test.rb
authlogic-2.1.10 test/session_test/persistence_test.rb
binarylogic-authlogic-2.1.0 test/session_test/persistence_test.rb
binarylogic-authlogic-2.1.1 test/session_test/persistence_test.rb
crankharder-authlogic-2.1.1 test/session_test/persistence_test.rb
jlecour-authlogic-2.1.2 test/session_test/persistence_test.rb
kschrader-authlogic-2.1.2 test/session_test/persistence_test.rb
kschrader-authlogic-2.1.3 test/session_test/persistence_test.rb
authlogic-2.1.8 test/session_test/persistence_test.rb
authlogic-2.1.7 test/session_test/persistence_test.rb
expertiza-authlogic-2.1.6.1 test/session_test/persistence_test.rb
wulffeld_authlogic-2.1.3 test/session_test/persistence_test.rb
authlogic-2.1.6 test/session_test/persistence_test.rb
lockbox_middleware-1.2.1 vendor/gems/authlogic-2.1.3/test/session_test/persistence_test.rb
Empact-authlogic-2.1.5 test/session_test/persistence_test.rb
authlogic-2.1.5 test/session_test/persistence_test.rb
authlogic-2.1.4 test/session_test/persistence_test.rb
Empact-authlogic-2.1.4 test/session_test/persistence_test.rb
namxam-authlogic-2.1.3.1 test/session_test/persistence_test.rb
drogus-authlogic-2.1.3 test/session_test/persistence_test.rb