diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-19 05:30:42 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-19 05:30:42 +0000 |
commit | 16b129a68ca1770815107a3edb54090282349ba7 (patch) | |
tree | fedc506d08a766066a829ae8efa3d691cc719aff /activerecord/test/cases/json_serialization_test.rb | |
parent | f95ff8d4dc37ced3b4493ad628e3ff7e5d950efd (diff) | |
download | rails-16b129a68ca1770815107a3edb54090282349ba7.tar.gz rails-16b129a68ca1770815107a3edb54090282349ba7.tar.bz2 rails-16b129a68ca1770815107a3edb54090282349ba7.zip |
belongs_to supports :dependent => :destroy and :delete. Closes #10592.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/cases/json_serialization_test.rb')
-rw-r--r-- | activerecord/test/cases/json_serialization_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/json_serialization_test.rb b/activerecord/test/cases/json_serialization_test.rb index 465c2454fc..779b8e02ad 100644 --- a/activerecord/test/cases/json_serialization_test.rb +++ b/activerecord/test/cases/json_serialization_test.rb @@ -151,7 +151,7 @@ class DatabaseConnectedJsonEncodingTest < ActiveSupport::TestCase def test_should_allow_except_option_for_list_of_authors authors = [@david, @mary] - assert_equal %([{"id": 1}, {"id": 2}]), authors.to_json(:except => [:name, :author_address_id]) + assert_equal %([{"id": 1}, {"id": 2}]), authors.to_json(:except => [:name, :author_address_id, :author_address_extra_id]) end def test_should_allow_includes_for_list_of_authors |