From 59e343cfc97458a38e9a9da5b0e9ba102fed0dd6 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 30 Sep 2009 09:43:11 -0700 Subject: returning nil on empty string --- test/visitors/test_yast_builder.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/visitors/test_yast_builder.rb') diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb index aa6f332..67d54be 100644 --- a/test/visitors/test_yast_builder.rb +++ b/test/visitors/test_yast_builder.rb @@ -45,6 +45,7 @@ module Psych assert_equal nil, Psych.load('Null') assert_equal nil, Psych.load('NULL') assert_equal nil, Psych.load('~') + assert_equal({'foo' => nil}, Psych.load('foo: ')) assert_round_trip 'null' assert_round_trip 'nUll' -- cgit v1.2.3