add rewrite for securitySchemes into swagger_doc

This commit is contained in:
Greg Myers
2020-03-24 14:56:05 +00:00
parent e9aebe6221
commit 231a2d135c
3 changed files with 15 additions and 12 deletions

View File

@@ -242,6 +242,7 @@ module Rswag
expect(request[:headers]).to eq('HTTP_AUTHORIZATION' => 'Basic foobar')
expect(ActiveSupport::Deprecation).to have_received(:warn)
.with('Rswag::Specs: WARNING: securityDefinitions is replaced in OpenAPI3! Rename to components/securitySchemes (in swagger_helper.rb)')
expect(swagger_doc[:components]).to have_key(:securitySchemes)
end
end
end