mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-23 06:16:42 +00:00
Merge branch 'spec-deprecations' into jamie
This commit is contained in:
commit
c161de3899
@ -11,6 +11,8 @@ module Rswag
|
|||||||
# Mock out some infrastructure
|
# Mock out some infrastructure
|
||||||
before do
|
before do
|
||||||
allow(config).to receive(:swagger_root).and_return(swagger_root)
|
allow(config).to receive(:swagger_root).and_return(swagger_root)
|
||||||
|
|
||||||
|
allow(ActiveSupport::Deprecation).to receive(:warn) # Silence deprecation output from specs
|
||||||
end
|
end
|
||||||
let(:config) { double('config') }
|
let(:config) { double('config') }
|
||||||
let(:output) { double('output').as_null_object }
|
let(:output) { double('output').as_null_object }
|
||||||
|
|||||||
@ -3,6 +3,10 @@
|
|||||||
require 'swagger_helper'
|
require 'swagger_helper'
|
||||||
|
|
||||||
RSpec.describe 'Auth Tests API', type: :request, swagger_doc: 'v1/swagger.json' do
|
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
|
path '/auth-tests/basic' do
|
||||||
post 'Authenticates with basic auth' do
|
post 'Authenticates with basic auth' do
|
||||||
tags 'Auth Tests'
|
tags 'Auth Tests'
|
||||||
|
|||||||
@ -3,6 +3,10 @@ require 'swagger_helper'
|
|||||||
RSpec.describe 'Blogs API', type: :request, swagger_doc: 'v1/swagger.json' do
|
RSpec.describe 'Blogs API', type: :request, swagger_doc: 'v1/swagger.json' do
|
||||||
let(:api_key) { 'fake_key' }
|
let(:api_key) { 'fake_key' }
|
||||||
|
|
||||||
|
before do
|
||||||
|
allow(ActiveSupport::Deprecation).to receive(:warn) # Silence deprecation output from specs
|
||||||
|
end
|
||||||
|
|
||||||
path '/blogs' do
|
path '/blogs' do
|
||||||
post 'Creates a blog' do
|
post 'Creates a blog' do
|
||||||
tags 'Blogs'
|
tags 'Blogs'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user