summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-11-29 15:40:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-11-29 15:40:53 +0000
commit3644d67fb8fad7a9d3faa7bca60421dbddb97af5 (patch)
tree4cb84f21cc6ffab1e3a59e5b3fab4e85ecd04072 /test
parent76725ebda11c34f69ac3bef740f0b72a31d60db3 (diff)
downloadredmine-3644d67fb8fad7a9d3faa7bca60421dbddb97af5.tar.gz
redmine-3644d67fb8fad7a9d3faa7bca60421dbddb97af5.zip
Merged r17643 to 3.4-stable (#20788).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17650 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/views/builders/json_test.rb9
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 8a0bd1032..8735815b6 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|