Sha256: 7f4ac36a0e6e4070d23b50a7b1907f8bcd611d2a17caf81ce735f22942ffaad6

Contents?: true

Size: 568 Bytes

Versions: 12

Compression:

Stored size: 568 Bytes

Contents

require 'minitest'
require 'minitest/unit'
require 'minitest/autorun'
require 'minitest/pride'
require 'redis'
require 'logster'
require 'logster/base_store'
require 'timecop'

class Logster::TestStore < Logster::BaseStore
  attr_accessor :reported
  def initialize
    @reported = []
  end

  def save(message)
    @reported << message
  end

  def count
    @reported.count
  end

  def clear
    @reported = []
  end

  def clear_all
    @reported = []
  end

  def check_rate_limits(severity)
    # Do nothing
  end

  # get, protect, unprotect: unimplemented
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
logster-1.2.11 test/test_helper.rb
logster-1.2.9 test/test_helper.rb
logster-1.2.8 test/test_helper.rb
logster-1.2.7 test/test_helper.rb
logster-1.2.6 test/test_helper.rb
logster-1.2.5 test/test_helper.rb
logster-1.2.4 test/test_helper.rb
logster-1.2.3 test/test_helper.rb
logster-1.2.2 test/test_helper.rb
logster-1.2.1 test/test_helper.rb
logster-1.2.0 test/test_helper.rb
logster-1.1.1 test/test_helper.rb