Skip to content

Commit

Permalink
Better format for rswag resource controller
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAugustoRamalhoDuarte committed Jan 4, 2023
1 parent 1f555b7 commit 64b4214
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit 64b4214

Please sign in to comment.