Sha256: 4e852a8a38a6721426d259fbccd54446bc99f7ab0701b85fb4bf77605026dd54
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
require 'rspec/core/rake_task' namespace :rswag3 do namespace :specs do 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' # NOTE: rspec 2.x support if Rswag3::Specs::RSPEC_VERSION > 2 && Rswag3::Specs.config.swagger_dry_run t.rspec_opts = [ '--format Rswag3::Specs::SwaggerFormatter', '--dry-run', '--order defined' ] else t.rspec_opts = [ '--format Rswag3::Specs::SwaggerFormatter', '--order defined' ] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rswag3-specs-0.0.2 | lib/tasks/rswag3-specs_tasks.rake |
rswag3-specs-0.0.1 | lib/tasks/rswag3-specs_tasks.rake |