aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/primary_keys_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-07-09 15:34:44 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-07-09 15:36:57 -0300
commitc5448721b5054b8a467958d60427fdee15eac604 (patch)
treea7df11a0253a102b102558359bd896fb9f06611c /activerecord/test/cases/primary_keys_test.rb
parentbc364afb9333cb7729452adf09fc70ccac510226 (diff)
downloadrails-c5448721b5054b8a467958d60427fdee15eac604.tar.gz
rails-c5448721b5054b8a467958d60427fdee15eac604.tar.bz2
rails-c5448721b5054b8a467958d60427fdee15eac604.zip
to_key on a destroyed model should return nil
Diffstat (limited to 'activerecord/test/cases/primary_keys_test.rb')
-rw-r--r--activerecord/test/cases/primary_keys_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/primary_keys_test.rb b/activerecord/test/cases/primary_keys_test.rb
index 05a41d8a0a..7e3da145e5 100644
--- a/activerecord/test/cases/primary_keys_test.rb
+++ b/activerecord/test/cases/primary_keys_test.rb
@@ -26,7 +26,7 @@ class PrimaryKeysTest < ActiveRecord::TestCase
def test_to_key_with_primary_key_after_destroy
topic = Topic.find(1)
topic.destroy
- assert_equal [1], topic.to_key
+ assert_equal nil, topic.to_key
end
def test_integer_key