aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/session_store/sql_bypass.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/session_store/sql_bypass.rb')
-rw-r--r--activerecord/test/cases/session_store/sql_bypass.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/session_store/sql_bypass.rb b/activerecord/test/cases/session_store/sql_bypass.rb
index f0ba166465..7402b2afd6 100644
--- a/activerecord/test/cases/session_store/sql_bypass.rb
+++ b/activerecord/test/cases/session_store/sql_bypass.rb
@@ -18,9 +18,9 @@ module ActiveRecord
assert !Session.table_exists?
end
- def test_new_record?
+ def test_persisted?
s = SqlBypass.new :data => 'foo', :session_id => 10
- assert s.new_record?, 'this is a new record!'
+ assert !s.persisted?, 'this is a new record!'
end
def test_not_loaded?