Sha256: 9396c7d0389c0f16d427eedfa670253bf9891dbac94c51e5c0037e62ac81b5e3

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 Bytes

Contents

require 'test_helper'

class MemoryAdapterTest < MiniTest::Unit::TestCase
  def setup
    Harness::MemoryAdapter.counters.clear
    Harness::MemoryAdapter.gauges.clear

    @adapter = Harness::MemoryAdapter.new
  end

  def test_log_gauge_adds_to_gauges
    @adapter.log_gauge :foo

    assert_includes @adapter.gauges, :foo
  end

  def test_log_counter_adds_to_counters
    @adapter.log_counter :bar

    assert_includes @adapter.counters, :bar
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
harness-0.9.1 test/unit/adapters/memory_adapter_test.rb
harness-0.9.0 test/unit/adapters/memory_adapter_test.rb
harness-0.8.1 test/unit/adapters/memory_adapter_test.rb
harness-0.8.0 test/unit/adapters/memory_adapter_test.rb
harness-0.7.0 test/unit/adapters/memory_adapter_test.rb
harness-0.6.0 test/unit/adapters/memory_adapter_test.rb
harness-0.5.0 test/unit/adapters/memory_adapter_test.rb
harness-0.4.0 test/unit/adapters/memory_adapter_test.rb