Sha256: 6908da0f2ae7b97d02e158caff46dd0fe18bbf23061767e54ca8d332d7184f8d
Contents?: true
Size: 634 Bytes
Versions: 31
Compression:
Stored size: 634 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe MetricFu::Flay do describe "generate_html" do it "should create a new Generator and call generate_report on it" do @generator = MetricFu::Flay.new('other_dir') @generator.should_receive(:`).and_return("Matches found in :call (mass = 55)\n\tlib/metric_fu/flog_reporter.rb:2\n\tlib/metric_fu/flog_reporter.rb:3") @generator.generate_html end end describe "template_name" do it "should return the class name in lowercase" do flay = MetricFu::Flay.new('base_dir') flay.template_name.should == 'flay' end end end
Version data entries
31 entries across 31 versions & 4 rubygems