Permalink
Browse files

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
  • Loading branch information...
1 parent 9ad1f49 commit ddb57d8ab82e7b007655b3b6b7096536b3b7658f @jeremy jeremy committed Jul 4, 2005
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/test/controller/active_record_store_test.rb
View
4 actionpack/test/controller/active_record_store_test.rb
@@ -13,6 +13,7 @@
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 @@ def session_class
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

0 comments on commit ddb57d8

Please sign in to comment.