photomix/vendor/plugins/authlogic/test/session_test/perishability_test.rb

15 lines
390 B
Ruby
Raw Normal View History

2011-04-11 12:07:31 +02:00
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