aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/session_store/session_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-12-09 11:23:19 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-12-09 11:23:19 -0800
commit5b82f50feff3c80cbe7a7ae33b078baa1515150a (patch)
tree5711db729a9f9b367de1625ad1e184a5e9738810 /activerecord/test/cases/session_store/session_test.rb
parent007965a6513f2631465cf8477846daf9532dafc4 (diff)
downloadrails-5b82f50feff3c80cbe7a7ae33b078baa1515150a.tar.gz
rails-5b82f50feff3c80cbe7a7ae33b078baa1515150a.tar.bz2
rails-5b82f50feff3c80cbe7a7ae33b078baa1515150a.zip
Use `table_exists?` from the schema cache.
Diffstat (limited to 'activerecord/test/cases/session_store/session_test.rb')
-rw-r--r--activerecord/test/cases/session_store/session_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/session_store/session_test.rb b/activerecord/test/cases/session_store/session_test.rb
index 258cee7aba..c206e3de4a 100644
--- a/activerecord/test/cases/session_store/session_test.rb
+++ b/activerecord/test/cases/session_store/session_test.rb
@@ -9,6 +9,7 @@ module ActiveRecord
def setup
super
+ ActiveRecord::Base.connection.schema_cache.clear!
Session.drop_table! if Session.table_exists?
end