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

17 lines
359 B
Ruby
Raw Normal View History

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