Sha256: ebd91f09919d9937d353137828407b40c1f22b0de6bae1952632e2167a256eca

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 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

1 entries across 1 versions & 1 rubygems

Version Path
indirect-metric_fu-0.9.0 spec/flay_spec.rb