diff options
author | Florian Frank <flori@ping.de> | 2011-12-01 08:42:49 +0100 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2011-12-01 08:42:49 +0100 |
commit | 0eb6ed53a2cb24d5932690c2206511a0622ab10c (patch) | |
tree | 8b082dca3a4c3c362ffb520b70978449a37dcfd9 /tests | |
parent | b0ee15f984e3ff056f646d253b142c3e47a35e0f (diff) | |
download | json-0eb6ed53a2cb24d5932690c2206511a0622ab10c.tar.gz |
Small fix: JSON.load('') # => nil
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_json.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |