Sha256: 36c9e03512905b0c78de0b9f842980fbcaa2c79cf56ae11794b50dfe42690bec
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' module Prosperity describe MetricFinder do subject { MetricFinder.new File.join(TEST_FILES, "metrics") } describe "#metrics" do let(:metrics) { subject.metrics } it "returns an array" do expect(metrics).to be_an(Array) end it "should contain at least one metric" do expect(metrics.size).to be > 0 expect(metrics.first.superclass).to eq(Metric) end end describe ".find_by_name" do it "finds a metric by name" do metric = described_class.find_by_name('UsersMetric') expect(metric).to be < Metric end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prosperity-0.0.11 | spec/lib/prosperity/metric_finder_spec.rb |
prosperity-0.0.10 | spec/lib/prosperity/metric_finder_spec.rb |