Sha256: 8bf3434d1eff3534822de5f02a0881359ba6723aec3f638ade3284556dbe0491

Contents?: true

Size: 525 Bytes

Versions: 8

Compression:

Stored size: 525 Bytes

Contents

# encoding: utf-8
require "spec_helper"
require "metric_fu"

describe Hexx::Suit::Metrics::MetricFu::Reek, :sandbox, :capture do

  let(:config) do
    ::MetricFu::Configuration.configure_metric(:reek) do |metric|
      metric.instance_eval { @configured_run_options || {} }
    end
  end

  describe ".load" do

    subject { try_in_sandbox { described_class.load } }

    it "configures the metric from reek.yml" do
      subject
      expect(config[:config_file_pattern]).to eq "config/metrics/reek.yml"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hexx-suit-2.3.2 spec/tests/lib/metrics/metric_fu/reek_spec.rb
hexx-suit-2.3.0 spec/tests/lib/metrics/metric_fu/reek_spec.rb
hexx-suit-2.2.3 spec/tests/lib/metrics/metric_fu/reek_spec.rb
hexx-suit-2.2.2 spec/tests/lib/metrics/metric_fu/reek_spec.rb
hexx-suit-2.2.1 spec/tests/lib/metrics/metric_fu/reek_spec.rb
hexx-suit-2.2.0 spec/tests/lib/metrics/metric_fu/reek_spec.rb
hexx-suit-2.1.0 spec/tests/lib/metrics/metric_fu/reek_spec.rb
hexx-suit-2.0.0 spec/tests/lib/metrics/metric_fu/reek_spec.rb