Permalink
Browse files

Merge pull request #8835 from sikachu/3-1-stable-fix-ars

Remove test for XML YAML parsing
  • Loading branch information...
2 parents 86cf7d3 + 3f3c35b commit a97199d707fdfa38bbffd5572015efa3c1f45c27 @carlosantoniodasilva carlosantoniodasilva committed Jan 9, 2013
Showing with 0 additions and 27 deletions.
  1. +0 −14 activeresource/test/abstract_unit.rb
  2. +0 −13 activeresource/test/cases/base_test.rb
@@ -83,19 +83,6 @@ def setup_response
}]
}
}.to_json
- # - resource with yaml array of strings; for ARs using serialize :bar, Array
- @marty = <<-eof.strip
- <?xml version=\"1.0\" encoding=\"UTF-8\"?>
- <person>
- <id type=\"integer\">5</id>
- <name>Marty</name>
- <colors type=\"yaml\">---
- - \"red\"
- - \"green\"
- - \"blue\"
- </colors>
- </person>
- eof
@startup_sound = {
:sound => {
@@ -107,7 +94,6 @@ def setup_response
mock.get "/people/1.json", {}, @matz
mock.get "/people/1.xml", {}, @matz_xml
mock.get "/people/2.xml", {}, @david
- mock.get "/people/5.xml", {}, @marty
mock.get "/people/Greg.json", {}, @greg
mock.get "/people/6.json", {}, @joe
mock.get "/people/4.json", { 'key' => 'value' }, nil, 404
@@ -1045,19 +1045,6 @@ def test_parse_deep_nested_resources
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)

0 comments on commit a97199d

Please sign in to comment.