Sha256: a182643c4860da95db5065e980741c292c5e4c234455ba9b9705464876a271d2

Contents?: true

Size: 522 Bytes

Versions: 8

Compression:

Stored size: 522 Bytes

Contents

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

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

  let(:config) do
    ::MetricFu::Configuration.configure_metric(:roodi) 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 roodi.yml" do
      subject
      expect(config[:roodi_config]).to eq "config/metrics/roodi.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/roodi_spec.rb
hexx-suit-2.3.0 spec/tests/lib/metrics/metric_fu/roodi_spec.rb
hexx-suit-2.2.3 spec/tests/lib/metrics/metric_fu/roodi_spec.rb
hexx-suit-2.2.2 spec/tests/lib/metrics/metric_fu/roodi_spec.rb
hexx-suit-2.2.1 spec/tests/lib/metrics/metric_fu/roodi_spec.rb
hexx-suit-2.2.0 spec/tests/lib/metrics/metric_fu/roodi_spec.rb
hexx-suit-2.1.0 spec/tests/lib/metrics/metric_fu/roodi_spec.rb
hexx-suit-2.0.0 spec/tests/lib/metrics/metric_fu/roodi_spec.rb