Browse files

Reset column info when messing with columns.

We are subclassing Session here, but messing with the columns will
affect the attribute methods defined on the Session superclass, and
therefore other tests, unless we properly isolate it by resetting column
info before and after the test run.
  • Loading branch information...
1 parent eecfa84 commit cf115d2f8ef48764e095aa453f729b60705088f1 @jonleighton jonleighton committed Sep 11, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/session_store/session_test.rb
@@ -36,6 +36,7 @@ def test_create_table!
def test_find_by_sess_id_compat
+ Session.reset_column_information
klass = do
def self.session_id_column
@@ -53,6 +54,7 @@ def self.session_id_column
assert_equal session.sessid, found.session_id
+ Session.reset_column_information
def test_find_by_session_id

0 comments on commit cf115d2

Please sign in to comment.