adds request spec generator shamelessly stollen from rspec-rails-swagger

This commit is contained in:
Paul Carey
2017-07-06 10:43:59 +01:00
parent 521ab14eaf
commit c9bda862b6
6 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
Description:
This creates an RSpec request spec to define Swagger documentation for a
controller. It will create a test for each of the controller's methods.
Example:
rails generate rspec:swagger V3::AccountsController
This will create:
spec/requests/v3/accounts_spec.rb