Sha256: 137c25698d13445dafd43f18cfc21b7efc445830252d5b0f199b6b9eea56c7e7
Contents?: true
Size: 700 Bytes
Versions: 105
Compression:
Stored size: 700 Bytes
Contents
# encoding: utf-8 require "logstash/instrument/null_metric" require "logstash/instrument/namespaced_metric" require_relative "../../support/shared_examples" require_relative "../../support/matchers" require "spec_helper" describe LogStash::Instrument::NullMetric do let(:key) { "test" } let(:collector) { [] } subject { LogStash::Instrument::NullMetric.new(collector) } it "defines the same interface as `Metric`" do expect(described_class).to implement_interface_of(LogStash::Instrument::Metric) end describe "#namespace" do it "return a NamespacedNullMetric" do expect(subject.namespace(key)).to be_kind_of LogStash::Instrument::NamespacedNullMetric end end end
Version data entries
105 entries across 102 versions & 11 rubygems