mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
Keep the execution order of the specs so that the resulting swagger.json will be consistent.
This commit is contained in:
parent
2348f917cd
commit
2f2c010074
@ -9,6 +9,6 @@ if defined?(RSpec)
|
||||
desc 'Generate Swagger JSON files from integration specs'
|
||||
RSpec::Core::RakeTask.new('swaggerize') do |t|
|
||||
t.pattern = 'spec/requests/**/*_spec.rb, spec/api/**/*_spec.rb, spec/integration/**/*_spec.rb'
|
||||
t.rspec_opts = [ '--format SwaggerRails::RSpec::Formatter', '--dry-run' ]
|
||||
t.rspec_opts = [ '--format SwaggerRails::RSpec::Formatter', '--dry-run', '--order defined' ]
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user