Commit 2232b379 by liyijie

Fix bug for auth_token template generate

parent 69cd4b4a
......@@ -19,7 +19,7 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true,
before :each do
<% if auth.present? -%>
@<%= auth_singular %> = <%= auth %>.register "<%= auth_singular %>", "password"
@"<%= auth_singular %>"_token = <%= auth %>.login "<%= auth_singular %>", "password"
@<%= auth_singular %>_token = <%= auth %>.login "<%= auth_singular %>", "password"
<% end -%>
@<%= resource_singular %>_count = 5
@<%= resource_plural %> = FactoryBot.create_list(:<%= resource_singular %>, @<%= resource_singular %>_count)
......
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