make spec output less noisy

This commit is contained in:
Jamie Macey
2020-10-13 10:14:02 -07:00
parent 8d673068af
commit 0a9487b328
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 }