From ddb57d8ab82e7b007655b3b6b7096536b3b7658f Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 4 Jul 2005 21:46:01 +0000 Subject: 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 --- actionpack/test/controller/active_record_store_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack') 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 -- cgit v1.2.3