Sha256: c739eb8f7e25ca645918ac3ba4567fb93f008899a0680d65dec8eb516c5811e7

Contents?: true

Size: 453 Bytes

Versions: 21

Compression:

Stored size: 453 Bytes

Contents

require 'test_helper'

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

    @adapter = Harness::MemoryAdapter
  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

21 entries across 21 versions & 1 rubygems

Version Path
harness-0.3.0 test/unit/adapters/memory_adapter_test.rb
harness-0.2.16 test/unit/adapters/memory_adapter_test.rb
harness-0.2.15 test/unit/adapters/memory_adapter_test.rb
harness-0.2.14 test/unit/adapters/memory_adapter_test.rb
harness-0.2.13 test/unit/adapters/memory_adapter_test.rb
harness-0.2.12 test/unit/adapters/memory_adapter_test.rb
harness-0.2.11 test/unit/adapters/memory_adapter_test.rb
harness-0.2.10 test/unit/adapters/memory_adapter_test.rb
harness-0.2.9 test/unit/adapters/memory_adapter_test.rb
harness-0.2.8 test/unit/adapters/memory_adapter_test.rb
harness-0.2.7 test/unit/adapters/memory_adapter_test.rb
harness-0.2.6 test/unit/adapters/memory_adapter_test.rb
harness-0.2.5 test/unit/adapters/memory_adapter_test.rb
harness-0.2.4 test/unit/adapters/memory_adapter_test.rb
harness-0.2.3 test/unit/adapters/memory_adapter_test.rb
harness-0.2.2 test/unit/adapters/memory_adapter_test.rb
harness-0.2.1 test/unit/adapters/memory_adapter_test.rb
harness-0.2.0 test/unit/adapters/memory_adapter_test.rb
harness-0.1.2 test/unit/adapters/memory_adapter_test.rb
harness-0.1.1 test/unit/adapters/memory_adapter_test.rb