aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/session_store/session_test.rb7
1 files changed, 5 insertions, 2 deletions
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