diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-28 00:45:35 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-28 10:11:27 -0200 |
commit | 304d38c0536dc32a8a1595ba34370ebf69a0d50d (patch) | |
tree | d45a7b846e4fb22bb39f1d4fba6edd1c7ecb54cb /activerecord/test | |
parent | 897b56bb2f8c2a904f546db1a32bad074463ec9b (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 2 |
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 |