diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-16 11:27:24 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-16 11:27:24 -0700 |
commit | 2a67a8cc59a9d1443756d8af2437d52252b9094e (patch) | |
tree | 4eb02270c45208a683c0bc64e01545d7214416d7 /activerecord/test/cases | |
parent | 4025efb53bc64e9b4c5b32bf7a68ef2632ffd888 (diff) | |
parent | 279fef1f9fedf73d94fc09e34566b1c56ec04a4c (diff) | |
download | rails-2a67a8cc59a9d1443756d8af2437d52252b9094e.tar.gz rails-2a67a8cc59a9d1443756d8af2437d52252b9094e.tar.bz2 rails-2a67a8cc59a9d1443756d8af2437d52252b9094e.zip |
Merge pull request #6136 from mhfs/sqlbypass_fixes
Bring SqlByPassTest to light and fix broken tests
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/session_store/sql_bypass_test.rb (renamed from activerecord/test/cases/session_store/sql_bypass.rb) | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/session_store/sql_bypass.rb b/activerecord/test/cases/session_store/sql_bypass_test.rb index 7402b2afd6..6749d4ce98 100644 --- a/activerecord/test/cases/session_store/sql_bypass.rb +++ b/activerecord/test/cases/session_store/sql_bypass_test.rb @@ -18,6 +18,11 @@ module ActiveRecord assert !Session.table_exists? end + def test_new_record? + s = SqlBypass.new :data => 'foo', :session_id => 10 + assert s.new_record?, 'this is a new record!' + end + def test_persisted? s = SqlBypass.new :data => 'foo', :session_id => 10 assert !s.persisted?, 'this is a new record!' |