aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-21 15:13:30 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-21 15:13:30 -0800
commitb5cc2777633561fca15eaf1a7b33e93a445417c4 (patch)
tree0b24875058bee14662a4afdf8bcfb255551526e5 /activemodel
parent370bcd1a017816422db2fdb410366752d60d72c8 (diff)
downloadrails-b5cc2777633561fca15eaf1a7b33e93a445417c4.tar.gz
rails-b5cc2777633561fca15eaf1a7b33e93a445417c4.tar.bz2
rails-b5cc2777633561fca15eaf1a7b33e93a445417c4.zip
psych does not emit a space after the tag
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/serializeration/xml_serialization_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/serializeration/xml_serialization_test.rb b/activemodel/test/cases/serializeration/xml_serialization_test.rb
index cc19d322b3..b6a2f88667 100644
--- a/activemodel/test/cases/serializeration/xml_serialization_test.rb
+++ b/activemodel/test/cases/serializeration/xml_serialization_test.rb
@@ -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