photomix/vendor/plugins/authlogic/test/session_test/perishability_test.rb
2011-04-11 18:07:31 +08:00

15 lines
390 B
Ruby

require 'test_helper'
module SessionTest
class PerishabilityTest < ActiveSupport::TestCase
def test_after_save
ben = users(:ben)
old_perishable_token = ben.perishable_token
session = UserSession.create(ben)
assert_not_equal old_perishable_token, ben.perishable_token
drew = employees(:drew)
assert UserSession.create(drew)
end
end
end