Merge pull request #127 from whopper/PDOC-125/acceptance

(PDOC-125) Update JSON acceptance test with signatures changes
This commit is contained in:
Jesse Scott 2016-11-15 11:18:27 -08:00 committed by GitHub
commit 95df5e6fa9
1 changed files with 15 additions and 1 deletions

View File

@ -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"]]},