From 77dd3be5038593f38840ff6eca55c9f0b2e12227 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') diff --git a/activerecord/test/cases/xml_serialization_test.rb b/activerecord/test/cases/xml_serialization_test.rb index 88751a72f9..33d510499b 100644 --- a/activerecord/test/cases/xml_serialization_test.rb +++ b/activerecord/test/cases/xml_serialization_test.rb @@ -130,18 +130,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 @@ -149,21 +149,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