summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-20 01:00:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-20 01:00:43 +0000
commit2190c953816ea5ea5562c9b31fcb97722a080a3b (patch)
tree7a1df46cffd0cf5f750fcbaf16388e5d73f88a33 /test
parentee80993690dadc8d3e649e8ab5dea8eab67d9e35 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_nil.rb2
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