diff options
author | Joshua Wehner <joshua.wehner@gmail.com> | 2011-03-03 15:43:42 -0500 |
---|---|---|
committer | Joshua Wehner <joshua.wehner@gmail.com> | 2011-05-10 12:06:09 -0400 |
commit | 2cef2d411a20b89b71fb76876c33b331f94d0cc5 (patch) | |
tree | be87688daa4b431f01e1e05051fa764408341bfc /activerecord/test/cases | |
parent | 8e55afb453beb8f98d647ae97619101b19b7f911 (diff) | |
download | rails-2cef2d411a20b89b71fb76876c33b331f94d0cc5.tar.gz rails-2cef2d411a20b89b71fb76876c33b331f94d0cc5.tar.bz2 rails-2cef2d411a20b89b71fb76876c33b331f94d0cc5.zip |
Methods that return nil should not be considered YAML
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/xml_serialization_test.rb | 5 |
1 files changed, 1 insertions, 4 deletions
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{<preferences(.*)></preferences>}.match(@xml) - attributes = $1 - assert_match %r{type="yaml"}, attributes - assert_match %r{nil="true"}, attributes + assert_match %r{<preferences nil=\"true\"></preferences>}, @xml end end |