diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-21 16:36:22 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-21 16:36:28 -0700 |
commit | ba0d2a9ce374df69647a8280459d59000ce43188 (patch) | |
tree | 177c99ff84a6659befdd3ae8226c16c32be0be27 /activerecord/test | |
parent | bdbe390a98acbebcfd48dca28c79d3296c8d3981 (diff) | |
download | rails-ba0d2a9ce374df69647a8280459d59000ce43188.tar.gz rails-ba0d2a9ce374df69647a8280459d59000ce43188.tar.bz2 rails-ba0d2a9ce374df69647a8280459d59000ce43188.zip |
starting sql bypass test, fixing create_table and drop_table!
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/session_store/sql_bypass.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/activerecord/test/cases/session_store/sql_bypass.rb b/activerecord/test/cases/session_store/sql_bypass.rb new file mode 100644 index 0000000000..5484c34f7d --- /dev/null +++ b/activerecord/test/cases/session_store/sql_bypass.rb @@ -0,0 +1,22 @@ +require 'cases/helper' +require 'action_dispatch' +require 'active_record/session_store' + +module ActiveRecord + class SessionStore + class SqlBypassTest < ActiveRecord::TestCase + def setup + super + Session.drop_table! if Session.table_exists? + end + + def test_create_table + assert !Session.table_exists? + SqlBypass.create_table! + assert Session.table_exists? + SqlBypass.drop_table! + assert !Session.table_exists? + end + end + end +end |