Commit 990e40f9 by liyijie

update format for path

parent e06420fe
...@@ -25,8 +25,8 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true, ...@@ -25,8 +25,8 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true,
@<%= resource_singular %>_count = 5 @<%= resource_singular %>_count = 5
@<%= resource_plural %> = FactoryBot.create_list(:<%= resource_singular %>, @<%= resource_singular %>_count) @<%= resource_plural %> = FactoryBot.create_list(:<%= resource_singular %>, @<%= resource_singular %>_count)
end end
<% @routes.each do | template, path_item | -%> <% @routes.each do | template, path_item | -%>
path '<%= template %>' do path '<%= template %>' do
<% if auth.present? -%> <% if auth.present? -%>
parameter '<%= auth %>-Token', in: :header ,type: :string parameter '<%= auth %>-Token', in: :header ,type: :string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment