Sha256: 8ece7ef5fbfb09db8c6ebc529545cdbb6d6dfe1e20f1550f287be150ccd300d3
Contents?: true
Size: 785 Bytes
Versions: 8
Compression:
Stored size: 785 Bytes
Contents
require 'test_helper' class ActiveSupportTestCase < IntegrationTest def test_a_gauge_is_logged ActiveSupport::Notifications.instrument "gauge_test.harness", :gauge => true do |args| # do nothing end assert_gauge_logged "gauge_test.harness" end def test_a_counter_is_logged ActiveSupport::Notifications.instrument "counter_test.harness", :counter => { :value => 5 } do |args| # do nothing end assert_counter_logged "counter_test.harness" end def test_can_log_both ActiveSupport::Notifications.instrument "test.harness", :gauge => { :id => "test-gauge" }, :counter => {:id => 'test-counter', :value => 5 } do |args| # do nothing end assert_counter_logged "test-counter" assert_gauge_logged "test-gauge" end end
Version data entries
8 entries across 8 versions & 1 rubygems