test/unit/adapters/librato_adapter_test.rb in harness-0.2.3 vs test/unit/adapters/librato_adapter_test.rb in harness-0.2.4

- old
+ new

@@ -49,15 +49,15 @@ assert @adapter.log_gauge(@gauge) assert_requested expected_request end def test_gauge_id_is_sanitized - @gauge.id = "process_action.action_controller" + @gauge.id = "!process_action.action_controller" json = { :gauges => [{ - :name => "process_action-action_controller", + :name => "bang.process_action.action_controller", :display_name => @gauge.name, :value => @gauge.value, :measure_time => @gauge.time.to_i, :source => @gauge.source, :attributes => { :display_units_short => @gauge.units } @@ -117,14 +117,14 @@ assert @adapter.log_counter(@counter) assert_requested expected_request end def test_counter_id_is_sanitized - @counter.id = "total_requests.action_controller" + @counter.id = "!total_requests.action_controller" json = { :counters => [{ - :name => "total_requests-action_controller", + :name => "bang.total_requests.action_controller", :display_name => @counter.name, :value => @counter.value, :measure_time => @counter.time.to_i, :source => @counter.source, :attributes => { :display_units_short => @counter.units }