aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-07-04 21:26:50 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-07-04 21:26:50 +0000
commit509bf538894531f4329810f0489446f200d60f12 (patch)
tree581ab04e943c616b031792203f218b4ec8d2b62e /actionpack
parent50619549eee6d3619c02bf9cb9eaadbbdb522913 (diff)
downloadrails-509bf538894531f4329810f0489446f200d60f12.tar.gz
rails-509bf538894531f4329810f0489446f200d60f12.tar.bz2
rails-509bf538894531f4329810f0489446f200d60f12.zip
r2809@asus: jeremy | 2005-07-04 19:29:19 -0700
give CGI::Session options as strings, not symbols git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/active_record_store_test.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/test/controller/active_record_store_test.rb b/actionpack/test/controller/active_record_store_test.rb
index a3c836df35..4f7a99cd61 100644
--- a/actionpack/test/controller/active_record_store_test.rb
+++ b/actionpack/test/controller/active_record_store_test.rb
@@ -47,9 +47,8 @@ class ActiveRecordStoreTest < Test::Unit::TestCase
end
def test_reload_same_session
- session_id = @new_session.session_id
@new_session.update
- reloaded = CGI::Session.new(CGI.new, 'session_id' => session_id, 'database_manager' => CGI::Session::ActiveRecordStore)
+ reloaded = CGI::Session.new(CGI.new, 'session_id' => @new_session.session_id, 'database_manager' => CGI::Session::ActiveRecordStore)
assert_equal 'bar', reloaded['foo']
end
end
@@ -61,13 +60,13 @@ class SqlBypassActiveRecordStoreTest < Test::Unit::TestCase
end
def setup
- session_class.connection = CGI::Session::ActiveRecordStore::Session.connection
+ session_class.connection = CGI::Session::ActiveRecordStore::SqlBypass.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 = CGI::Session.new(CGI.new, 'database_manager' => CGI::Session::ActiveRecordStore, 'new_session' => true)
end
def teardown
@@ -86,9 +85,8 @@ class SqlBypassActiveRecordStoreTest < Test::Unit::TestCase
end
def test_reload_same_session
- session_id = @new_session.session_id
@new_session.update
- reloaded = CGI::Session.new(CGI.new, 'session_id' => session_id, 'database_manager' => CGI::Session::ActiveRecordStore)
+ reloaded = CGI::Session.new(CGI.new, 'session_id' => @new_session.session_id, 'database_manager' => CGI::Session::ActiveRecordStore)
assert_equal 'bar', reloaded['foo']
end
end