mirror of https://github.com/rails/rails
psych does not emit a space after the tag
This commit is contained in:
parent
370bcd1a01
commit
b5cc277763
|
@ -114,7 +114,7 @@ class XmlSerializationTest < ActiveModel::TestCase
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
test "should call proc on object" do
|
||||
|
|
Loading…
Reference in New Issue