diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-20 01:00:43 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-20 01:00:43 +0000 |
commit | 2190c953816ea5ea5562c9b31fcb97722a080a3b (patch) | |
tree | 7a1df46cffd0cf5f750fcbaf16388e5d73f88a33 | |
parent | ee80993690dadc8d3e649e8ab5dea8eab67d9e35 (diff) | |
download | ruby-2190c953816ea5ea5562c9b31fcb97722a080a3b.tar.gz |
Allow "--- \n" as a yaml dumped result for nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/psych/test_nil.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_nil.rb b/test/psych/test_nil.rb index 9b54a030c8..f3d9c5e8d8 100644 --- a/test/psych/test_nil.rb +++ b/test/psych/test_nil.rb @@ -4,7 +4,7 @@ module Psych class TestNil < TestCase def test_nil yml = Psych.dump nil - assert_equal "--- \n...\n", yml + assert_match /--- \n(?:\.\.\.\n)?/, yml assert_equal nil, Psych.load(yml) end |