Sha256: 9ccdeac6105f1cb59e1c8284dd73f08bc331d7ec987ff56c591e5dd568ac3176
Contents?: true
Size: 222 Bytes
Versions: 22
Compression:
Stored size: 222 Bytes
Contents
require 'tmpdir' shared_context 'isolated environment' do around do |example| Dir.mktmpdir do |tmpdir| tmpdir = File.realpath(tmpdir) Dir.chdir(tmpdir) do example.run end end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
fasterer-0.2.0 | spec/support/isolated_environment.rb |
fasterer-0.1.12 | spec/support/isolated_environment.rb |