diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-07-04 21:46:01 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-07-04 21:46:01 +0000 |
commit | ddb57d8ab82e7b007655b3b6b7096536b3b7658f (patch) | |
tree | dfd261d5ced16819605e1fcdc72541a374108b09 /actionpack/test/controller/active_record_store_test.rb | |
parent | 9ad1f4998546384254aadd19bfa08024c77539b9 (diff) | |
download | rails-ddb57d8ab82e7b007655b3b6b7096536b3b7658f.tar.gz rails-ddb57d8ab82e7b007655b3b6b7096536b3b7658f.tar.bz2 rails-ddb57d8ab82e7b007655b3b6b7096536b3b7658f.zip |
r2815@asus: jeremy | 2005-07-04 19:49:35 -0700
Correct SqlBypass test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/active_record_store_test.rb')
-rw-r--r-- | actionpack/test/controller/active_record_store_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/controller/active_record_store_test.rb b/actionpack/test/controller/active_record_store_test.rb index 4f7a99cd61..618995a3f2 100644 --- a/actionpack/test/controller/active_record_store_test.rb +++ b/actionpack/test/controller/active_record_store_test.rb @@ -13,6 +13,7 @@ end require File.dirname(__FILE__) + '/../abstract_unit' require 'action_controller/session/active_record_store' +#ActiveRecord::Base.logger = Logger.new($stdout) CGI::Session::ActiveRecordStore::Session.establish_connection(:adapter => 'sqlite3', :dbfile => ':memory:') @@ -60,13 +61,14 @@ class SqlBypassActiveRecordStoreTest < Test::Unit::TestCase end def setup - session_class.connection = CGI::Session::ActiveRecordStore::SqlBypass.connection + session_class.connection = CGI::Session::ActiveRecordStore::Session.connection session_class.create_table! ENV['REQUEST_METHOD'] = 'GET' CGI::Session::ActiveRecordStore.session_class = session_class @new_session = CGI::Session.new(CGI.new, 'database_manager' => CGI::Session::ActiveRecordStore, 'new_session' => true) + @new_session['foo'] = 'bar' end def teardown |