test/libs/user_session.rb in authlogic-3.4.3 vs test/libs/user_session.rb in authlogic-3.4.4

- old
+ new

@@ -1,5 +1,25 @@ class UserSession < Authlogic::Session::Base end class BackOfficeUserSession < Authlogic::Session::Base end + +class WackyUserSession < Authlogic::Session::Base + attr_accessor :counter + authenticate_with User + + def initialize + @counter = 0 + super + end + + def persist_by_false + self.counter += 1 + return false + end + + def persist_by_true + self.counter += 1 + return true + end +end