Sha256: 574be0fbd034ceb6166a0917fe8cb4fa2daa0cfc402eaf6dcfeadea9abff4d02

Contents?: true

Size: 658 Bytes

Versions: 9

Compression:

Stored size: 658 Bytes

Contents

require "spec_helper"
require "shared/configured"

describe MetricFu::Configuration, "for cane" do
  it_behaves_like "configured" do
    if MetricFu.configuration.mri?
      it "should set @cane to " +
        ':dirs_to_cane => @code_dirs, :abc_max => 15, :line_length => 80, :no_doc => "n", :no_readme => "y"' do
        load_metric "cane"
        expect(MetricFu::Metric.get_metric(:cane).run_options).to eq(

            dirs_to_cane: directory("code_dirs"),
            filetypes: ["rb"],
            abc_max: 15,
            line_length: 80,
            no_doc: "n",
            no_readme: "n"
            )
      end
    end
  end # end it_behaves
end

Version data entries

9 entries across 9 versions & 3 rubygems

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