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