From 2190c953816ea5ea5562c9b31fcb97722a080a3b Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 20 Jun 2011 01:00:43 +0000 Subject: 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 --- test/psych/test_nil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/psych') 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 -- cgit v1.2.3