Sha256: 4e11b8408de537437b1c79c9cbcfcbbd702e53c9457e6b3247c557140e4e449c

Contents?: true

Size: 582 Bytes

Versions: 14

Compression:

Stored size: 582 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 with gchart enabled" do
    it 'should instantiate a grapher and push it to clazz' do
      @graph.clazz.should_receive(:push).with(an_instance_of(RcovGchartGrapher))
      @graph.add("rcov", 'gchart')
    end
  end  
end

Version data entries

14 entries across 14 versions & 7 rubygems

Version Path
cayblood-metric_fu-1.1.6 spec/base/graph_spec.rb
goldstar-metric_fu-1.5.1.2 spec/base/graph_spec.rb
metric_fu-2.0.0 spec/base/graph_spec.rb
goldstar-metric_fu-1.5.1.1 spec/base/graph_spec.rb
metric_fu-1.5.1 spec/base/graph_spec.rb
metric_fu-1.5.0 spec/base/graph_spec.rb
metric_fu-1.4.0 spec/base/graph_spec.rb
devver-metric_fu-1.3.3 spec/base/graph_spec.rb
nielsm-metric_fu-1.3.1 spec/base/graph_spec.rb
metric_fu-1.3.0 spec/base/graph_spec.rb
edouard-metric_fu-1.2.1 spec/base/graph_spec.rb
edouard-metric_fu-1.2.0 spec/base/graph_spec.rb
metric_fu-1.2.0 spec/base/graph_spec.rb
flyerhzm-metric_fu-1.0.0 spec/base/graph_spec.rb