Sha256: c4d6885f0d704768c49e315f827d8b8b2e3d7542bf6434c83a0ae15042f00154
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true require 'minitest/autorun' require 'mocha/mini_test' require 'combustion' require 'as_deprecation_tracker' Combustion.path = 'test/internal' Combustion.initialize! module ASDeprecationTracker class TestCase < ::Minitest::Test def with_env(new_env) new_env.stringify_keys! backup = ENV.to_h.slice(new_env.keys) begin ENV.update(new_env) yield ensure new_env.keys.each { |k| ENV.delete(k) } ENV.update(backup) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems