diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-04 10:41:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-04 10:41:31 +0000 |
commit | 558a951ed64a3639ac08fdc7245dffab8607ab3f (patch) | |
tree | 2dc74b74a68e1f8afe46b67e6c790a9a156e02af /test/unit | |
parent | 37ed02553aee58d1b269c3ec8786bc8daff05484 (diff) | |
download | redmine-558a951ed64a3639ac08fdc7245dffab8607ab3f.tar.gz redmine-558a951ed64a3639ac08fdc7245dffab8607ab3f.zip |
Fixes unhandled case in json builder.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4463 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/views/builders/json_test.rb | 7 |
1 files changed, 7 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 195fba020..919fe2236 100644 --- a/test/unit/lib/redmine/views/builders/json_test.rb +++ b/test/unit/lib/redmine/views/builders/json_test.rb @@ -35,6 +35,13 @@ class Redmine::Views::Builders::JsonTest < HelperTestCase b.birth :city => 'London', :country => 'UK' end end + + assert_json_output({'person' => {'id' => 1, 'name' => 'Ryan', 'birth' => {'city' => 'London', 'country' => 'UK'}}}) do |b| + b.person :id => 1 do + b.name 'Ryan' + b.birth :city => 'London', :country => 'UK' + end + end end def test_array |