3 module ActionController
5 def self.after_filter(*args)
11 $LOAD_PATH.push(File.dirname(__FILE__) + "../lib")
14 class SessionPersistenceTest < Test::Unit::TestCase
16 @controller = ActionController::Base.new
17 @controller.instance_eval {
22 def session_persistence_key
28 def test_session_expires_after
29 @controller.instance_eval { session_expires_after 10 }
30 assert_equal 10, @controller.session[:mine]
33 def test_session_expires_automatically
34 @controller.instance_eval {
35 session_expires_after 10
36 session_expires_automatically
39 assert !@controller.session.has_key?(:mine)