Sha256: ac4b074049c84ba09253fd4f36ebc0e29d89a8b2ee8e541d51af62d5a50d1756

Contents?: true

Size: 546 Bytes

Versions: 26

Compression:

Stored size: 546 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")

describe MetricFu do
  
  describe "responding to #graph" do
    it "should return an instance of Graph" do
      MetricFu.graph.should be_a(Graph)
    end
  end
end

describe MetricFu::Graph do
  
  before(:each) do
    @graph = MetricFu::Graph.new
  end
  
  describe "responding to #add" do
    it 'should instantiate a grapher and push it to clazz' do
      @graph.clazz.should_receive(:push).with(an_instance_of(RcovGrapher))
      @graph.add("rcov")
    end
  end  
end

Version data entries

26 entries across 26 versions & 11 rubygems

Version Path
IPGlider-metric_fu-1.1.5.1.1 spec/base/graph_spec.rb
IPGlider-metric_fu-1.1.5.1 spec/base/graph_spec.rb
gforces-metric_fu-1.1.4 spec/base/graph_spec.rb
iain-metric_fu-0.1.0 spec/base/graph_spec.rb
iain-metric_fu-0.1.1 spec/base/graph_spec.rb
iain-metric_fu-0.1.2 spec/base/graph_spec.rb
jscruggs-metric_fu-1.1.2 spec/base/graph_spec.rb
jscruggs-metric_fu-1.1.3 spec/base/graph_spec.rb
jscruggs-metric_fu-1.1.4 spec/base/graph_spec.rb
jscruggs-metric_fu-1.1.5 spec/base/graph_spec.rb
kjeldahl-metric_fu-1.1.5.1 spec/base/graph_spec.rb
kjeldahl-metric_fu-1.1.5.2 spec/base/graph_spec.rb
kjeldahl-metric_fu-1.1.5.3 spec/base/graph_spec.rb
kjeldahl-metric_fu-1.1.5.4 spec/base/graph_spec.rb
kjeldahl-metric_fu-1.1.5 spec/base/graph_spec.rb
mattvanhorn-metric_fu-1.1.5.1 spec/base/graph_spec.rb
mattvanhorn-metric_fu-1.1.5.2 spec/base/graph_spec.rb
mtdewboy-metric_fu-1.1.5.1 spec/base/graph_spec.rb
mwilden-metric_fu-1.1.3 spec/base/graph_spec.rb
mwilden-metric_fu-1.1.5 spec/base/graph_spec.rb