Sha256: a16d96e4cb1b4a24a246921acc8dfb2d0da689a3537d08bd185e507b9e5d70a6

Contents?: true

Size: 483 Bytes

Versions: 8

Compression:

Stored size: 483 Bytes

Contents

require 'rspec/core/formatters'

module Pact
  module Provider
    module RSpec
      class SilentJsonFormatter < ::RSpec::Core::Formatters::JsonFormatter

        def initialize stream
          # Don't want to display this to the screen,
          # not sure how else to set a custom stream for a particular formatter
          # Store a reference to this so it can be inspected afterwards.
          super(Pact.world.json_formatter_stream)
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact-1.1.1 lib/pact/provider/rspec/silent_json_formatter.rb
pact-1.1.0 lib/pact/provider/rspec/silent_json_formatter.rb
pact-1.1.0.rc5 lib/pact/provider/rspec/silent_json_formatter.rb
pact-1.1.0.rc4 lib/pact/provider/rspec/silent_json_formatter.rb
pact-1.1.0.rc3 lib/pact/provider/rspec/silent_json_formatter.rb
pact-1.0.39 lib/pact/provider/rspec/silent_json_formatter.rb
pact-1.1.0.rc2 lib/pact/provider/rspec/silent_json_formatter.rb
pact-1.0.38 lib/pact/provider/rspec/silent_json_formatter.rb