spec/outputs/graphite_spec.rb in logstash-output-graphite-2.0.5 vs spec/outputs/graphite_spec.rb in logstash-output-graphite-3.0.0

- old
+ new

@@ -34,10 +34,10 @@ "fields_are_metrics" => true, "include_metrics" => ["foo"], "metrics_format" => "foo.%{@host}.sys.data.*") } let(:event) { LogStash::Event.new("foo" => "123", "@host" => "testhost") } - let(:expected_metric_prefix) { "foo.#{event['@host']}.sys.data" } + let(:expected_metric_prefix) { "foo.#{event.get('@host')}.sys.data" } context "match one key" do it "should generate one element" do expect(server.size).to eq(1) end