Sha256: d5fa6c2cbca8c52b5dcd435b6c15abcf4d832fca9f49e3c12701d83351fbbd0e
Contents?: true
Size: 365 Bytes
Versions: 15
Compression:
Stored size: 365 Bytes
Contents
module VMC::TestSupport::FakeHomeDir def self.included(klass) def klass.use_fake_home_dir(&block) around do |example| dir = instance_exec(&block) original_home_dir = ENV['HOME'] ENV['HOME'] = dir begin example.call ensure ENV['HOME'] = original_home_dir end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems