From e134e171c201e136ce28dc229cdc61944dc59cf2 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Tue, 8 Jan 2013 19:39:25 -0500 Subject: Remove test for XML YAML parsing The support for YAML parsing in XML has been removed from Active Support since it introduced an security risk. See 43109ec for more detail. --- activeresource/test/cases/base_test.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'activeresource/test/cases/base_test.rb') diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb index 5ef8a51ef7..983f0541a8 100644 --- a/activeresource/test/cases/base_test.rb +++ b/activeresource/test/cases/base_test.rb @@ -1077,19 +1077,6 @@ class BaseTest < Test::Unit::TestCase end end - def test_load_yaml_array - assert_nothing_raised do - Person.format = :xml - marty = Person.find(5) - assert_equal 3, marty.colors.size - marty.colors.each do |color| - assert_kind_of String, color - end - end - ensure - Person.format = :json - end - def test_with_custom_formatter addresses = [{ :id => "1", :street => "1 Infinite Loop", :city => "Cupertino", :state => "CA" }].to_xml(:root => :addresses) -- cgit v1.2.3