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.11.0 spec/support/isolated_environment.rb
fasterer-0.10.1 spec/support/isolated_environment.rb
fasterer-0.10.0 spec/support/isolated_environment.rb
fasterer-0.9.0 spec/support/isolated_environment.rb
fasterer-0.8.3 spec/support/isolated_environment.rb
fasterer-0.8.2 spec/support/isolated_environment.rb
fasterer-0.8.1 spec/support/isolated_environment.rb
fasterer-0.8.0 spec/support/isolated_environment.rb
fasterer-0.7.1 spec/support/isolated_environment.rb
fasterer-0.7.0 spec/support/isolated_environment.rb
fasterer-0.6.0 spec/support/isolated_environment.rb
fasterer-0.5.1 spec/support/isolated_environment.rb
fasterer-0.5.0 spec/support/isolated_environment.rb
fasterer-0.4.2 spec/support/isolated_environment.rb
fasterer-0.4.1 spec/support/isolated_environment.rb
fasterer-0.4.0 spec/support/isolated_environment.rb
fasterer-0.3.2 spec/support/isolated_environment.rb
fasterer-0.3.1 spec/support/isolated_environment.rb
fasterer-0.3.0 spec/support/isolated_environment.rb
fasterer-0.2.1 spec/support/isolated_environment.rb