Sha256: f71b0c87421a2a0b3b8df81a4d46c06b97c05fc8a0ed469d4fa0ee11710d8ab6

Contents?: true

Size: 473 Bytes

Versions: 18

Compression:

Stored size: 473 Bytes

Contents

require 'test_helper'

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

18 entries across 18 versions & 9 rubygems

Version Path
authlogic-3.1.3 test/session_test/persistence_test.rb
authlogic-3.1.2 test/session_test/persistence_test.rb
authlogic-3.1.1 test/session_test/persistence_test.rb
nulogy-authlogic-3.1.0.1 test/session_test/persistence_test.rb
Empact-authlogic-3.1.0 test/session_test/persistence_test.rb
authlogic-3.1.0 test/session_test/persistence_test.rb
Empact-authlogic-3.0.3 test/session_test/persistence_test.rb
antlypls-authlogic-3.0.3 test/session_test/persistence_test.rb
authlogic-3.0.3 test/session_test/persistence_test.rb
authlogic-3.0.2 test/session_test/persistence_test.rb
authlogic-3.0.1 test/session_test/persistence_test.rb
authlogic-3.0.0 test/session_test/persistence_test.rb
authlogic-rails3-2.2 test/session_test/persistence_test.rb
kb-authlogic-2.1.7 test/session_test/persistence_test.rb
railsware-authlogic-2.1.6.1 test/session_test/persistence_test.rb
cotweet-authlogic-2.1.6 test/session_test/persistence_test.rb
jdl-authlogic-2.1.6.2 test/session_test/persistence_test.rb
jdl-authlogic-2.1.6.1 test/session_test/persistence_test.rb