From 2cef2d411a20b89b71fb76876c33b331f94d0cc5 Mon Sep 17 00:00:00 2001 From: Joshua Wehner Date: Thu, 3 Mar 2011 15:43:42 -0500 Subject: Methods that return nil should not be considered YAML --- activerecord/test/cases/xml_serialization_test.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'activerecord') diff --git a/activerecord/test/cases/xml_serialization_test.rb b/activerecord/test/cases/xml_serialization_test.rb index a6074b23e7..756c8a32eb 100644 --- a/activerecord/test/cases/xml_serialization_test.rb +++ b/activerecord/test/cases/xml_serialization_test.rb @@ -143,10 +143,7 @@ class NilXmlSerializationTest < ActiveRecord::TestCase end def test_should_serialize_yaml - assert %r{}.match(@xml) - attributes = $1 - assert_match %r{type="yaml"}, attributes - assert_match %r{nil="true"}, attributes + assert_match %r{}, @xml end end -- cgit v1.2.3