Keep the execution order of the specs so that the resulting swagger.json will be consistent.

This commit is contained in:
Dennis Wu 2016-08-25 11:10:20 +08:00
parent 2348f917cd
commit 2f2c010074
No known key found for this signature in database
GPG Key ID: 7763EF806342DFB0

View File

@ -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