def add_stubbed_value(key, value)
      allow(ENV).to receive(:[]).with(key).and_return(value)
      allow(ENV).to receive(:fetch).with(key).and_return(value)
      allow(ENV).to receive(:fetch).with(key, anything) do |_, default_val|
        value || default_val
      end
    end
def add_stubbed_value(key, value)
      allow(ENV).to receive(:[]).with(key).and_return(value)
      allow(ENV).to receive(:fetch).with(key).and_return(value)
      allow(ENV).to receive(:fetch).with(key, anything) do |_, default_val|
        value || default_val
      end
    end
rubocop:disable Metrics/AbcSize