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

17 lines
359 B
Ruby

require 'test_helper'
module SessionTest
class IdTest < ActiveSupport::TestCase
def test_credentials
session = UserSession.new
session.credentials = [:my_id]
assert_equal :my_id, session.id
end
def test_id
session = UserSession.new
session.id = :my_id
assert_equal :my_id, session.id
end
end
end