Commit eb940925 by liyijie

Update spec template for project using

parent 0860a9b7
require 'swagger_helper'
RSpec.describe '<%= controller_path %>', type: :request do
RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true, tags: [""] do
<% @routes.each do | template, path_item | %>
path '<%= template %>' do
<% unless path_item[:params].empty? -%>
......@@ -16,6 +16,8 @@ RSpec.describe '<%= controller_path %>', type: :request do
<% end -%>
<% path_item[:actions].each do | action, details | -%>
<%= action %>(summary: '<%= details[:summary] %>') do
produces 'application/json'
consumes 'application/json'
response(200, description: 'successful') do
# You can add before/let blocks here to trigger the response code
end
......
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