Sha256: 8d53a79f0bc29208c90008b9db2a5208a5f6c16ab996e2b4d1054b8db4997016
Contents?: true
Size: 521 Bytes
Versions: 4
Compression:
Stored size: 521 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe MetricFu::FlogGrapher do it "should not fall over when given empty results" do MetricFu::Configuration.run {} gruff_line = Gruff::Line.new(MetricFu.graph_size) gruff_line.stub!(:write) Gruff::Line.stub!(:new).and_return(gruff_line) grapher = FlogGrapher.new() metrics_hash = {:flog => {:average => 0, :pages => [], :total => 0}} grapher.get_metrics(metrics_hash ,"20090629") grapher.graph! end end
Version data entries
4 entries across 4 versions & 4 rubygems