Sha256: ebc3780745a67fbad748e5ceef72fc0e7f05ad3784b498611278d333d632b340

Contents?: true

Size: 585 Bytes

Versions: 10

Compression:

Stored size: 585 Bytes

Contents

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

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

10 entries across 10 versions & 1 rubygems

Version Path
logster-2.4.2 test/test_helper.rb
logster-2.4.1 test/test_helper.rb
logster-2.4.0 test/test_helper.rb
logster-2.3.3 test/test_helper.rb
logster-2.3.2 test/test_helper.rb
logster-2.3.1 test/test_helper.rb
logster-2.3.0 test/test_helper.rb
logster-2.2.0 test/test_helper.rb
logster-2.1.1 test/test_helper.rb
logster-1.3.1 test/test_helper.rb