From bb9db53702bc834160d687bb2c509247a52540b1 Mon Sep 17 00:00:00 2001 From: Will Hopper Date: Tue, 15 Nov 2016 11:01:12 -0800 Subject: [PATCH] (PDOC-125) Update JSON acceptance test with signatures changes --- spec/acceptance/emit_json_options.rb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/spec/acceptance/emit_json_options.rb b/spec/acceptance/emit_json_options.rb index d1e99f3..0c0c5f4 100644 --- a/spec/acceptance/emit_json_options.rb +++ b/spec/acceptance/emit_json_options.rb @@ -15,7 +15,21 @@ expected = { "file" => "/etc/puppet/modules/test/lib/puppet/parser/functions/function3x.rb", "line" => 1, "type" => "ruby3x", - "signature" => "function3x()", + "signatures" => [ + { + "signature" =>"function3x()", + "docstring" => { + "text" => "This is the function documentation for `function3x`", + "tags" => [ + { + "tag_name"=>"return", + "text"=>"", + "types"=>["Any"] + } + ] + } + }, + ], "docstring" => { "text" => "This is the function documentation for `function3x`", "tags" => ["tag_name" => "return", "text" => "", "types" => ["Any"]]},