diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-11-29 15:41:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-11-29 15:41:34 +0000 |
commit | cf588edbeab9209bfa751a18af6a1f1321fc66a7 (patch) | |
tree | ff070b1075e36993147ac156a408d0318ede8ad7 /test | |
parent | 8b4f325214756002ec362d6872a9ded60743275d (diff) | |
download | redmine-cf588edbeab9209bfa751a18af6a1f1321fc66a7.tar.gz redmine-cf588edbeab9209bfa751a18af6a1f1321fc66a7.zip |
Merged r17643 to 3.3-stable (#20788).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17651 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/views/builders/json_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/views/builders/json_test.rb b/test/unit/lib/redmine/views/builders/json_test.rb index 0cb75c98b..13381e3aa 100644 --- a/test/unit/lib/redmine/views/builders/json_test.rb +++ b/test/unit/lib/redmine/views/builders/json_test.rb @@ -18,6 +18,15 @@ require File.expand_path('../../../../../../test_helper', __FILE__) class Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase + def test_nil_and_false + assert_json_output({'value' => nil}) do |b| + b.value nil + end + + assert_json_output({'value' => false}) do |b| + b.value false + end + end def test_hash assert_json_output({'person' => {'name' => 'Ryan', 'age' => 32}}) do |b| |