From ba4a6c296e2283501494e1608be238f30444e1fc Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 7 Sep 2012 13:31:27 -0300 Subject: Fix AR tests due to builder change with nil values / empty strings Check 0180e090ab6cbe66f7b521a0c03e278a0463accd for more reasoning about that. --- activerecord/test/cases/xml_serialization_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/xml_serialization_test.rb b/activerecord/test/cases/xml_serialization_test.rb index 7249ae9e4d..68fa15de50 100644 --- a/activerecord/test/cases/xml_serialization_test.rb +++ b/activerecord/test/cases/xml_serialization_test.rb @@ -185,18 +185,18 @@ class NilXmlSerializationTest < ActiveRecord::TestCase end def test_should_serialize_string - assert_match %r{}, @xml + assert_match %r{}, @xml end def test_should_serialize_integer - assert %r{}.match(@xml) + assert %r{}.match(@xml) attributes = $1 assert_match %r{nil="true"}, attributes assert_match %r{type="integer"}, attributes end def test_should_serialize_binary - assert %r{}.match(@xml) + assert %r{}.match(@xml) attributes = $1 assert_match %r{type="binary"}, attributes assert_match %r{encoding="base64"}, attributes @@ -204,21 +204,21 @@ class NilXmlSerializationTest < ActiveRecord::TestCase end def test_should_serialize_datetime - assert %r{}.match(@xml) + assert %r{}.match(@xml) attributes = $1 assert_match %r{nil="true"}, attributes assert_match %r{type="dateTime"}, attributes end def test_should_serialize_boolean - assert %r{}.match(@xml) + assert %r{}.match(@xml) attributes = $1 assert_match %r{type="boolean"}, attributes assert_match %r{nil="true"}, attributes end def test_should_serialize_yaml - assert_match %r{}, @xml + assert_match %r{}, @xml end end -- cgit v1.2.3