Sha256: 41b40b4b5d55eae24f5e52aa92c147db2575213561c7ef3fbfd9821b3965c921
Contents?: true
Size: 751 Bytes
Versions: 8
Compression:
Stored size: 751 Bytes
Contents
# encoding: utf-8 require "spec_helper" require "metric_fu" describe Hexx::Suit::Metrics::MetricFu::Cane, :sandbox, :capture do let(:config) do ::MetricFu::Configuration.configure_metric(:cane) do |metric| metric.instance_eval { @configured_run_options || {} } end end let(:settings) do { "abc_max" => "10", "line_length" => "80", "no_doc" => "y", "no_readme" => "y" } end describe ".load" do before { prepare_settings settings, "config/metrics/cane.yml" } subject { try_in_sandbox { described_class.load } } it "configures the metric from cane.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