require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe Hotspots do describe "analyze method" do before :each do MetricFu::Configuration.run {} File.stub!(:directory?).and_return(true) @yaml =<