Sha256: 4a7cc05f9aabc9087186a12f72a6645cde63300c084c0e0e397df5c30ad11b96
Contents?: true
Size: 862 Bytes
Versions: 3
Compression:
Stored size: 862 Bytes
Contents
require "test_helper" module SessionTest class PersistenceTest < ActiveSupport::TestCase def test_find aaron = users(:aaron) refute UserSession.find UserSession.allow_http_basic_auth = true http_basic_auth_for(aaron) { assert UserSession.find } set_cookie_for(aaron) assert UserSession.find unset_cookie set_session_for(aaron) session = UserSession.find assert session end def test_persisting # tested thoroughly in test_find end def test_should_set_remember_me_on_the_next_request aaron = users(:aaron) session = UserSession.new(aaron) session.remember_me = true refute UserSession.remember_me assert session.save assert session.remember_me? session = UserSession.find(aaron) assert session.remember_me? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
authlogic-4.2.0 | test/session_test/persistence_test.rb |
authlogic-4.1.1 | test/session_test/persistence_test.rb |
authlogic-4.1.0 | test/session_test/persistence_test.rb |