aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-12-14 10:35:29 +0000
committerJon Leighton <j@jonathanleighton.com>2011-12-14 11:05:00 +0000
commit3ab49f87e43c2cc436f45a89b75e8a016d0fb677 (patch)
tree928579164d7b0641310b39ffbcd187c7f057a8c1 /activerecord/test
parentf3531a8fc9f661f96759f0a851540745876e5d6c (diff)
downloadrails-3ab49f87e43c2cc436f45a89b75e8a016d0fb677.tar.gz
rails-3ab49f87e43c2cc436f45a89b75e8a016d0fb677.tar.bz2
rails-3ab49f87e43c2cc436f45a89b75e8a016d0fb677.zip
Unfluff the CI.
With transactional fixtures enabled, the session records would end up in @_current_transaction_records, and at the end of the transaction, methods would be called on them that would trigger method_missing and trigger attribute methods to be generated. However, at this point the sessions table would not exist, and the columns were not cached, so an exception would be raised because we can't find the columns to generate attribute methods for. Not sure exactly why this didn't crop up before but there have been changes to the schema cache code and perhaps that means that column data that was cached previously at that point is now uncached.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/session_store/session_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/session_store/session_test.rb b/activerecord/test/cases/session_store/session_test.rb
index c206e3de4a..bcacbb9b5f 100644
--- a/activerecord/test/cases/session_store/session_test.rb
+++ b/activerecord/test/cases/session_store/session_test.rb
@@ -5,7 +5,7 @@ require 'active_record/session_store'
module ActiveRecord
class SessionStore
class SessionTest < ActiveRecord::TestCase
- self.use_transactional_fixtures = false unless supports_savepoints? && ActiveRecord::Base.connection.supports_ddl_transactions?
+ self.use_transactional_fixtures = false
def setup
super