summaryrefslogtreecommitdiff
path: root/tests/test_json.rb
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-12-01 08:42:49 +0100
committerFlorian Frank <flori@ping.de>2011-12-01 08:42:49 +0100
commit0eb6ed53a2cb24d5932690c2206511a0622ab10c (patch)
tree8b082dca3a4c3c362ffb520b70978449a37dcfd9 /tests/test_json.rb
parentb0ee15f984e3ff056f646d253b142c3e47a35e0f (diff)
downloadjson-0eb6ed53a2cb24d5932690c2206511a0622ab10c.tar.gz
Small fix: JSON.load('') # => nil
Diffstat (limited to 'tests/test_json.rb')
-rwxr-xr-xtests/test_json.rb1
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