Sha256: c1cc06dd9a3beeb1c4bb6e904c88372bbbdb519a9a8065e6a1333a49da041b75

Contents?: true

Size: 519 Bytes

Versions: 5

Compression:

Stored size: 519 Bytes

Contents

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

describe "Bluff graphers responding to #graph!" do
  it "should write chart file" do
    MetricFu.configuration
    graphs = {}
    MetricFu::AVAILABLE_GRAPHS.each do |graph|
      graphs[graph] = MetricFu.const_get("#{graph.to_s.capitalize}BluffGrapher").new
    end
    graphs.each do |key, val|
      val.graph!
      lambda{ File.open(File.join(MetricFu.output_directory, "#{key.to_s.downcase}.js")) }.should_not raise_error
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
cayblood-metric_fu-1.1.6 spec/graphs/engines/bluff_spec.rb
edouard-metric_fu-1.2.1 spec/graphs/engines/bluff_spec.rb
edouard-metric_fu-1.2.0 spec/graphs/engines/bluff_spec.rb
metric_fu-1.2.0 spec/graphs/engines/bluff_spec.rb
flyerhzm-metric_fu-1.0.0 spec/graphs/engines/bluff_spec.rb