mirror of
https://github.com/github/rails.git
synced 2026-01-10 07:07:54 -05:00
psych does not emit a space after the tag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user