aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-04-16 21:49:52 -0700
committerwycats <wycats@gmail.com>2010-04-17 00:50:59 -0400
commitb7693dc028cea513724681a70dfd4f3e294bbc54 (patch)
treeb3413c1d8e3a6bff33ebbcfb7aac1560ee8889e2 /activerecord
parentd92e3111fed2a5372d4bb8ac66c9d8542f730488 (diff)
downloadrails-b7693dc028cea513724681a70dfd4f3e294bbc54.tar.gz
rails-b7693dc028cea513724681a70dfd4f3e294bbc54.tar.bz2
rails-b7693dc028cea513724681a70dfd4f3e294bbc54.zip
working around syck defects by optionally matching a space [#4426 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/xml_serialization_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/xml_serialization_test.rb b/activerecord/test/cases/xml_serialization_test.rb
index 2849ff11b7..f5a18827d8 100644
--- a/activerecord/test/cases/xml_serialization_test.rb
+++ b/activerecord/test/cases/xml_serialization_test.rb
@@ -79,7 +79,7 @@ class DefaultXmlSerializationTest < ActiveRecord::TestCase
end
def test_should_serialize_yaml
- assert_match %r{<preferences type=\"yaml\">--- \n:gem: ruby\n</preferences>}, @xml
+ assert_match %r{<preferences type=\"yaml\">---\s?\n:gem: ruby\n</preferences>}, @xml
end
end