Sha256: e68cce048cb3c3464881f5def455ac154721dc49ac365f61a5f682cbe7b30253

Contents?: true

Size: 635 Bytes

Versions: 3

Compression:

Stored size: 635 Bytes

Contents

require 'rspectacles/adapter/batched_redis_logger'
require 'rspectacles/formatter/redis'

module RSpectacles
  module Formatter
    class BatchedRedis < RSpectacles::Formatter::Redis
      RSpec::Core::Formatters.register self,
                                       *%i(example_passed
                                           example_failed
                                           start
                                           stop
                                           message)

      def logger
        @logger ||= RSpectacles::Adapter::BatchedRedisLogger.new(test_run_key: current_run_key)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspectacles-0.2.2 lib/rspectacles/formatter/batched_redis.rb
rspectacles-0.2.1 lib/rspectacles/formatter/batched_redis.rb
rspectacles-0.2.0 lib/rspectacles/formatter/batched_redis.rb