Commit 9ee8dc7b by liyijie

auth_token bugfix

parent 2232b379
...@@ -29,7 +29,7 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true, ...@@ -29,7 +29,7 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true,
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
let('<%= auth %>-Token') { @auth_token.token } let('<%= auth %>-Token') { @<%= auth_singular %>_token.token }
<% end -%> <% end -%>
<% unless path_item[:params].empty? -%> <% unless path_item[:params].empty? -%>
<% path_item[:params].each do |param| -%> <% path_item[:params].each do |param| -%>
......
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