psych does not emit a space after the tag

This commit is contained in:
Aaron Patterson 2011-01-21 15:13:30 -08:00
parent 370bcd1a01
commit b5cc277763
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class XmlSerializationTest < ActiveModel::TestCase
end end
test "should serialize yaml" do test "should serialize yaml" do
assert_match %r{<preferences type=\"yaml\">--- !ruby/struct:Customer \nname: John\n</preferences>}, @contact.to_xml assert_match %r{<preferences type=\"yaml\">--- !ruby/struct:Customer(\s*)\nname: John\n</preferences>}, @contact.to_xml
end end
test "should call proc on object" do test "should call proc on object" do