From da37716c35ec5007c028c533d64cea0dc80f574b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 22 Jul 2010 23:40:39 -0700 Subject: refactoring class methods to a module --- activerecord/test/cases/session_store/session_test.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/session_store/session_test.rb b/activerecord/test/cases/session_store/session_test.rb index 4f67073675..6ba31028de 100644 --- a/activerecord/test/cases/session_store/session_test.rb +++ b/activerecord/test/cases/session_store/session_test.rb @@ -49,8 +49,11 @@ module ActiveRecord def test_find_by_session_id Session.create_table! - s = Session.create!(:data => 'world', :session_id => "10") - assert_equal s, Session.find_by_session_id("10") + session_id = "10" + s = Session.create!(:data => 'world', :session_id => session_id) + t = Session.find_by_session_id(session_id) + assert_equal s, t + assert_equal s.data, t.data Session.drop_table! end -- cgit v1.2.3