Skip to content

Commit 6bc27be

Browse files
author
Tim Vandecasteele
committed
Adapt spec to change body -> form
1 parent 52b5133 commit 6bc27be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/grape-swagger-helper_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class HelperTestAPI < Grape::API
3030
]
3131
end
3232

33-
it "should parse params as body for a POST" do
33+
it "should parse params as form for a POST" do
3434
params = {
3535
name: {type: 'String', :desc =>"A name", required: true },
3636
level: 'max'
@@ -39,8 +39,8 @@ class HelperTestAPI < Grape::API
3939
method = "POST"
4040
@api.parse_params(params, path, method).should ==
4141
[
42-
{paramType: "body", name: :name, description:"A name", dataType: "String", required: true},
43-
{paramType: "body", name: :level, description:"", dataType: "String", required: false}
42+
{paramType: "form", name: :name, description:"A name", dataType: "String", required: true},
43+
{paramType: "form", name: :level, description:"", dataType: "String", required: false}
4444
]
4545
end
4646
end

0 commit comments

Comments
 (0)