We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df92af commit cfc1841Copy full SHA for cfc1841
spec/grape-swagger-helper_spec.rb
@@ -48,7 +48,12 @@ class HelperTestAPI < Grape::API
48
context "parsing the path" do
49
it "should parse the path" do
50
path = ":abc/def(.:format)"
51
- @api.parse_path(path).should == "{abc}/def.{format}"
+ @api.parse_path(path, nil).should == "{abc}/def.{format}"
52
+ end
53
+
54
+ it "should parse the path with a specified version" do
55
+ path = ":abc/{version}/def(.:format)"
56
+ @api.parse_path(path, 'v1').should == "{abc}/v1/def.{format}"
57
end
58
59
0 commit comments