From 0eb6ed53a2cb24d5932690c2206511a0622ab10c Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Thu, 1 Dec 2011 08:42:49 +0100 Subject: Small fix: JSON.load('') # => nil --- tests/test_json.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test_json.rb') diff --git a/tests/test_json.rb b/tests/test_json.rb index 40774b3..c308933 100755 --- a/tests/test_json.rb +++ b/tests/test_json.rb @@ -427,6 +427,7 @@ EOT stringio.rewind assert_equal @hash, JSON.load(stringio) assert_equal nil, JSON.load(nil) + assert_equal nil, JSON.load('') end def test_dump -- cgit v1.2.1