Sha256: ba806e14d7f9e2f16804c4039e741b2b52c2b61513cda78d81b1646783d316bb

Contents?: true

Size: 936 Bytes

Versions: 16

Compression:

Stored size: 936 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

REEK_RESULT = %("lib/metric_fu/base.rb" -- 5 warnings:
[Utility Function] #configuration doesn't depend on instance state
[Utility Function] #open_in_browser? doesn't depend on instance state
[Long Method] Configuration#reset has approx 6 statements
[Utility Function] Generator#cycle doesn't depend on instance state
[Utility Function] Generator#link_to_filename doesn't depend on instance state)

describe MetricFu::Reek do

  describe "generate_html" do
    it "should create a new Generator and call generate_report on it" do
      @generator = MetricFu::Reek.new('other_dir')
      @generator.should_receive(:`).and_return(REEK_RESULT)
      @generator.generate_html
    end
  end
  
  describe "template_name" do
    it "should return the class name in lowercase" do
      flay = MetricFu::Reek.new('base_dir')      
      flay.template_name.should == 'reek'
    end
  end  
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
jscruggs-metric_fu-0.8.9 spec/reek_spec.rb
jscruggs-metric_fu-0.9.0 spec/reek_spec.rb
leh-metric_fu-0.9.2 spec/reek_spec.rb
nielsm-metric_fu-0.9.0 spec/reek_spec.rb
nielsm-metric_fu-0.9.1 spec/reek_spec.rb
p8-metric_fu-0.8.0.16 spec/reek_spec.rb
p8-metric_fu-0.8.4.16 spec/reek_spec.rb
p8-metric_fu-0.8.9.1 spec/reek_spec.rb
p8-metric_fu-0.8.9 spec/reek_spec.rb
p8-metric_fu-0.9.0.2 spec/reek_spec.rb
p8-metric_fu-0.9.0.3 spec/reek_spec.rb
p8-metric_fu-0.9.0.4 spec/reek_spec.rb
p8-metric_fu-0.9.0.5 spec/reek_spec.rb
p8-metric_fu-0.9.0.6 spec/reek_spec.rb
p8-metric_fu-0.9.0.7 spec/reek_spec.rb
p8-metric_fu-0.9.0 spec/reek_spec.rb