require "spec_helper"

describe MetricFu do
  it "loads the .metrics file" do
    # Global only for testing that this file gets loaded
    $metric_file_loaded = false
    MetricFu.loader.load_user_configuration
    expect($metric_file_loaded).to be_truthy
  end
end

require "spec_helper"

describe MetricFu do
  it "loads the .metrics file" do
    # Global only for testing that this file gets loaded
    $metric_file_loaded = false
    MetricFu.with_run_dir Dir["spec/support"] do
      MetricFu.loader.load_user_configuration
    end

    expect($metric_file_loaded).to be_truthy
  end
end

Use MetricFu.with_run_dir to avoid flakiness
Use MetricFu.with_run_dir to avoid flakiness

This scenario is not the flaky one, but the fact that this is expecting things to work because there was a file under spec/dummy is problematic for other scenarios.
