diff options
Diffstat (limited to 'actionpack/test/controller')
-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 |