spec/lib/prosperity/metric_finder_spec.rb in prosperity-0.0.1 vs spec/lib/prosperity/metric_finder_spec.rb in prosperity-0.0.2

- old
+ new

@@ -14,7 +14,14 @@ it "should contain at least one metric" do metrics.size.should be > 0 metrics.first.superclass.should == Metric end end + + describe ".find_by_name" do + it "finds a metric by name" do + metric = described_class.find_by_name('UsersMetric') + metric.should be < Metric + end + end end end