Sha256: 025d906589ed1c25e01fe6416e8ddd82b6df97b7728a8e560e23664aaef4a9f6

Contents?: true

Size: 958 Bytes

Versions: 9

Compression:

Stored size: 958 Bytes

Contents

require "spec_helper"
require "shared/configured"

describe MetricFu::Configuration, "for saikuro" do
  it_behaves_like "configured" do
    it "should set @saikuro to { :output_directory => @scratch_directory + '/saikuro',
                                 :input_directory => @code_dirs,
                                 :cyclo => '',
                                 :filter_cyclo => '0',
                                 :warn_cyclo => '5',
                                 :error_cyclo => '7',
                                 :formater => 'text' }" do
      load_metric "saikuro"
      expect(MetricFu::Metric.get_metric(:saikuro).run_options).to eq(
               output_directory: "#{scratch_directory}/saikuro",
               input_directory: ["lib"],
               cyclo: "",
               filter_cyclo: "0",
               warn_cyclo: "5",
               error_cyclo: "7",
               formater: "text"
                    )
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
metric_fu-4.13.0 spec/metric_fu/metrics/saikuro/configuration_spec.rb
fastruby-metric_fu-5.0.0 spec/metric_fu/metrics/saikuro/configuration_spec.rb
code_metric_fu-4.14.4 spec/metric_fu/metrics/saikuro/configuration_spec.rb
code_metric_fu-4.14.3 spec/metric_fu/metrics/saikuro/configuration_spec.rb
code_metric_fu-4.14.2 spec/metric_fu/metrics/saikuro/configuration_spec.rb
code_metric_fu-4.14.1 spec/metric_fu/metrics/saikuro/configuration_spec.rb
code_metric_fu-4.14.0 spec/metric_fu/metrics/saikuro/configuration_spec.rb
metric_fu-4.12.0 spec/metric_fu/metrics/saikuro/configuration_spec.rb
metric_fu-4.11.4 spec/metric_fu/metrics/saikuro/configuration_spec.rb