Sha256: 7ca7e479565090885f221874051b2f996fb51d7ff701a77c36963d909620f6d8
Contents?: true
Size: 761 Bytes
Versions: 8
Compression:
Stored size: 761 Bytes
Contents
# encoding: utf-8 require "spec_helper" require "metric_fu" describe Hexx::Suit::Metrics::MetricFu::Churn, :sandbox, :capture do let(:config) do ::MetricFu::Configuration.configure_metric(:churn) do |metric| metric.instance_eval { @configured_run_options || {} } end end let(:settings) do { "ignore_files" => %w(spec), "minimum_churn_count" => "1", "start_date" => "6 months ago" } end describe ".load" do before { prepare_settings settings, "config/metrics/churn.yml" } subject { try_in_sandbox { described_class.load } } it "configures the metric from churn.yml" do subject settings.each { |key, value| expect(config[key.to_sym]).to eq value } end end end
Version data entries
8 entries across 8 versions & 1 rubygems