test/unit/adapters/librato_adapter_test.rb in harness-0.3.0 vs test/unit/adapters/librato_adapter_test.rb in harness-0.4.0

- old
+ new

@@ -1,10 +1,10 @@ require 'test_helper' class LibratoAdapterTest < MiniTest::Unit::TestCase def setup - @adapter = Harness::LibratoAdapter + @adapter = Harness::LibratoAdapter.new @gauge = Harness::Gauge.new @gauge.id = "fake-gauge" @gauge.name = "Fake Gauge" @gauge.source = "minitest" @@ -64,10 +64,10 @@ assert @adapter.log_gauge(@gauge) assert_requested expected_request end - def test_logging_gague_raises_an_exception + def test_logging_gauge_raises_an_exception stub_request(:post, %r{metrics}).to_return(:status => 500, :body => "message") assert_raises Harness::LoggingError do @adapter.log_gauge @gauge end