Sha256: 3faf37f08ca49395a23963bb1bbb1c904e68cc53015ebbbab762451feb567d08
Contents?: true
Size: 219 Bytes
Versions: 39
Compression:
Stored size: 219 Bytes
Contents
module EnvHelper def with_env(vars) original = ENV.to_hash vars.each { |k, v| ENV[k] = v } begin yield ensure ENV.replace(original) end end end RSpec.configuration.include EnvHelper
Version data entries
39 entries across 39 versions & 1 rubygems