Add spec generator test

This commit is contained in:
Greg Myers
2019-10-16 23:19:24 +01:00
parent 189a7ef061
commit 4d29e09010
3 changed files with 45 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ RSpec.describe '<%= controller_path %>', type: :request do
<% unless path_item[:params].empty? -%>
# You'll want to customize the parameter types...
<% path_item[:params].each do |param| -%>
parameter '<%= param %>', in: :body, type: :string
parameter name: '<%= param %>', in: :path, type: :string, description: '<%= param %>'
<% end -%>
<% end -%>
<% path_item[:actions].each do | action, details | %>