From b000c94ea0011ef0d0d891adedb4fc9500791809 Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sun, 29 Mar 2020 20:27:36 +0100 Subject: [PATCH] add output for swaggerize command by inheriting thhe base text formatter --- rswag-specs/lib/rswag/specs/swagger_formatter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rswag-specs/lib/rswag/specs/swagger_formatter.rb b/rswag-specs/lib/rswag/specs/swagger_formatter.rb index 0447034..568f7e2 100644 --- a/rswag-specs/lib/rswag/specs/swagger_formatter.rb +++ b/rswag-specs/lib/rswag/specs/swagger_formatter.rb @@ -1,9 +1,10 @@ require 'active_support/core_ext/hash/deep_merge' +require 'rspec/core/formatters/base_text_formatter' require 'swagger_helper' module Rswag module Specs - class SwaggerFormatter + class SwaggerFormatter < ::RSpec::Core::Formatters::BaseTextFormatter # NOTE: rspec 2.x support if RSPEC_VERSION > 2