Merge pull request #372 from rswag/spec-deprecations

Clean up spec ouput
This commit is contained in:
Jamie Macey 2020-10-18 17:59:40 -07:00 committed by GitHub
commit 83567e0ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,8 @@ module Rswag
# Mock out some infrastructure
before do
allow(config).to receive(:swagger_root).and_return(swagger_root)
allow(ActiveSupport::Deprecation).to receive(:warn) # Silence deprecation output from specs
end
let(:config) { double('config') }
let(:output) { double('output').as_null_object }

View File

@ -3,6 +3,10 @@
require 'swagger_helper'
RSpec.describe 'Auth Tests API', type: :request, swagger_doc: 'v1/swagger.json' do
before do
allow(ActiveSupport::Deprecation).to receive(:warn) # Silence deprecation output from specs
end
path '/auth-tests/basic' do
post 'Authenticates with basic auth' do
tags 'Auth Tests'

View File

@ -3,6 +3,10 @@ require 'swagger_helper'
RSpec.describe 'Blogs API', type: :request, swagger_doc: 'v1/swagger.json' do
let(:api_key) { 'fake_key' }
before do
allow(ActiveSupport::Deprecation).to receive(:warn) # Silence deprecation output from specs
end
path '/blogs' do
post 'Creates a blog' do
tags 'Blogs'