aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-12-28 00:45:35 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-12-28 10:11:27 -0200
commit304d38c0536dc32a8a1595ba34370ebf69a0d50d (patch)
treed45a7b846e4fb22bb39f1d4fba6edd1c7ecb54cb /activerecord/test/cases/attribute_methods_test.rb
parent897b56bb2f8c2a904f546db1a32bad074463ec9b (diff)
downloadrails-304d38c0536dc32a8a1595ba34370ebf69a0d50d.tar.gz
rails-304d38c0536dc32a8a1595ba34370ebf69a0d50d.tar.bz2
rails-304d38c0536dc32a8a1595ba34370ebf69a0d50d.zip
Allow primary_key to be an attribute when the model is a new record
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index 8214815bde..e3cbae4a84 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -105,7 +105,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase
def test_read_attributes_before_type_cast
category = Category.new({:name=>"Test categoty", :type => nil})
- category_attrs = {"name"=>"Test categoty", "type" => nil, "categorizations_count" => nil}
+ category_attrs = {"name"=>"Test categoty", "id" => nil, "type" => nil, "categorizations_count" => nil}
assert_equal category_attrs , category.attributes_before_type_cast
end