diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-22 17:24:00 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-07-22 13:34:27 -0700 |
commit | 227680f4152004b6f373192aa03bba6a89224a59 (patch) | |
tree | 260416af3aa3b47723dc9627010425d8295219ab /activerecord/test/cases/session_store | |
parent | 3ec67595522b573f800ad4f8df3ed8436eb670c7 (diff) | |
download | rails-227680f4152004b6f373192aa03bba6a89224a59.tar.gz rails-227680f4152004b6f373192aa03bba6a89224a59.tar.bz2 rails-227680f4152004b6f373192aa03bba6a89224a59.zip |
session_id is a VARCHAR
Diffstat (limited to 'activerecord/test/cases/session_store')
-rw-r--r-- | activerecord/test/cases/session_store/session_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/test/cases/session_store/session_test.rb b/activerecord/test/cases/session_store/session_test.rb index bb2e1ec97a..4f67073675 100644 --- a/activerecord/test/cases/session_store/session_test.rb +++ b/activerecord/test/cases/session_store/session_test.rb @@ -37,20 +37,20 @@ module ActiveRecord assert klass.columns_hash['sessid'], 'sessid column exists' session = klass.new(:data => 'hello') - session.sessid = 100 + session.sessid = "100" session.save! - found = klass.find_by_session_id(100) + found = klass.find_by_session_id("100") assert_equal session, found - assert_equal session.sessid, found.session_id.to_i + assert_equal session.sessid, found.session_id ensure klass.drop_table! end def test_find_by_session_id Session.create_table! - s = Session.create!(:data => 'world', :session_id => 10) - assert_equal s, Session.find_by_session_id(10) + s = Session.create!(:data => 'world', :session_id => "10") + assert_equal s, Session.find_by_session_id("10") Session.drop_table! end |