diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-09 01:03:24 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-09 01:03:24 +0000 |
commit | 0abaf3a2d8d35481a5d4ddb9817d9903c8e61200 (patch) | |
tree | 9f1a0994cc5256546a0f9f26e85b12db9e79db2a /actionpack/test | |
parent | 97f418ce022da6b5da9cf24779932820e947414d (diff) | |
download | rails-0abaf3a2d8d35481a5d4ddb9817d9903c8e61200.tar.gz rails-0abaf3a2d8d35481a5d4ddb9817d9903c8e61200.tar.bz2 rails-0abaf3a2d8d35481a5d4ddb9817d9903c8e61200.zip |
CGI::Session::ActiveRecordStore.data_column_name = 'foobar' to use a different session data column than the 'data' default. References #2731. Remove error-prone method_missing passthrough to session model. Cleanup.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/active_record_store_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/active_record_store_test.rb b/actionpack/test/controller/active_record_store_test.rb index f10bbf7434..5c612865c3 100644 --- a/actionpack/test/controller/active_record_store_test.rb +++ b/actionpack/test/controller/active_record_store_test.rb @@ -74,7 +74,7 @@ class ActiveRecordStoreTest < Test::Unit::TestCase def test_model_attribute assert_kind_of CGI::Session::ActiveRecordStore::Session, @new_session.model - assert_equal @new_session.model.data, @new_session.data + assert_equal({ 'foo' => 'bar' }, @new_session.model.data) end def teardown @@ -98,7 +98,7 @@ class ColumnLimitTest < Test::Unit::TestCase too_big = ':(' * limit s = @session_class.new(:session_id => '666', :data => {'foo' => too_big}) s.data - assert_raises(ActionController::SessionOverflowError) { s.save } + assert_raise(ActionController::SessionOverflowError) { s.save } end end @@ -132,7 +132,7 @@ class SqlBypassActiveRecordStoreTest < ActiveRecordStoreTest def test_model_attribute assert_kind_of CGI::Session::ActiveRecordStore::SqlBypass, @new_session.model - assert_equal @new_session.model.data, @new_session.data + assert_equal({ 'foo' => 'bar' }, @new_session.model.data) end end |