diff --git a/lib/generators/rest_api_generator/spec/templates/rswag/resource_controller_spec.rb.tt b/lib/generators/rest_api_generator/spec/templates/rswag/resource_controller_spec.rb.tt index 67d10bb..b368fe7 100644 --- a/lib/generators/rest_api_generator/spec/templates/rswag/resource_controller_spec.rb.tt +++ b/lib/generators/rest_api_generator/spec/templates/rswag/resource_controller_spec.rb.tt @@ -33,7 +33,7 @@ RSpec.describe "<%= spec_routes[:index] %>", type: :request do } } response(201, "successful") do - let(:<%= singular_table_name %>) {attributes_for(:<%= singular_table_name %>)} + let(:<%= singular_table_name %>) { attributes_for(:<%= singular_table_name %>) } after do |example| example.metadata[:response][:content] = {