Sha256: 12e55a181f661399925b616ad4514e3bd1533dc44d96ade8b349ee6e0cc0ac97

Contents?: true

Size: 682 Bytes

Versions: 7059

Compression:

Stored size: 682 Bytes

Contents

module RSpec
  module Core
    module Formatters
      # @api private
      # Formatter for providing message output as a fallback when no other
      # profiler implements #message
      class FallbackMessageFormatter
        Formatters.register self, :message

        def initialize(output)
          @output = output
        end

        # @private
        attr_reader :output

        # @api public
        #
        # Used by the reporter to send messages to the output stream.
        #
        # @param notification [MessageNotification] containing message
        def message(notification)
          output.puts notification.message
        end
      end
    end
  end
end

Version data entries

7,059 entries across 6,977 versions & 125 rubygems

Version Path
rspec-core-3.4.0 lib/rspec/core/formatters/fallback_message_formatter.rb
swift-pyrite-0.1.1 vendor/bundle/ruby/2.0.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
swift-pyrite-0.1.0 vendor/bundle/ruby/2.0.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
sublimetheme-1.0.1 path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
sublimetheme-1.0.0 path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
geminfo-0.1.0 path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rspec-core-3.3.1/lib/rspec/core/formatters/fallback_message_formatter.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rspec-core-3.3.1/lib/rspec/core/formatters/fallback_message_formatter.rb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb
rspec-core-3.3.2 lib/rspec/core/formatters/fallback_message_formatter.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rspec-core-3.3.1/lib/rspec/core/formatters/fallback_message_formatter.rb
rspec-core-3.3.1 lib/rspec/core/formatters/fallback_message_formatter.rb
rspec-core-3.3.0 lib/rspec/core/formatters/fallback_message_formatter.rb