test/test_helper.rb in harness-1.0.0 vs test/test_helper.rb in harness-1.0.1
- old
+ new
@@ -38,9 +38,15 @@
refute_empty gauges
gauge = gauges.find { |g| g.name == name }
assert gauge, "gauge #{name} not logged!"
end
+ def assert_counter(name)
+ refute_empty counters
+ counter = counters.find { |g| g.name == name }
+ assert counter, "counter #{name} not logged!"
+ end
+
def instrument(name, data = {}, &block)
ActiveSupport::Notifications.instrument name, data, &block
end
def collector