test/test_helper.rb in harness-0.2.4 vs test/test_helper.rb in harness-0.2.5

- old
+ new

@@ -33,9 +33,17 @@ def assert_counter_logged(name) refute_empty counters.select {|c| c.name = name }, "Expected #{counters.inspect} to contain a #{name} result" end + def refute_gauge_logged(name) + assert_empty gauges.select {|g| g.name = name }, "No gauge expected to be logged" + end + + def refute_counter_logged(name) + assert_empty counters.select {|c| c.name = name }, "No counter expected to be logged" + end + def gauges Harness::MemoryAdapter.gauges end def counters