Sha256: 29c824f466a2bd896ff9596e3e390e7669cc82c6dffcccabe30879a31cc5a792

Contents?: true

Size: 201 Bytes

Versions: 52

Compression:

Stored size: 201 Bytes

Contents

require 'tmpdir'
require 'fileutils'

shared_context "isolated directory", :isolated_directory => true do
  around do |ex|
    Dir.mktmpdir do |tmp_dir|
      Dir.chdir(tmp_dir, &ex)
    end
  end
end

Version data entries

52 entries across 52 versions & 13 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-core-2.13.0/spec/support/isolated_directory.rb
rspec-core-2.99.2 spec/support/isolated_directory.rb
dxruby_rp5-0.0.4 spec/vendor/rspec-core-2.14.7/spec/support/isolated_directory.rb
rspec-core-2.99.1 spec/support/isolated_directory.rb
rspec-core-2.99.0 spec/support/isolated_directory.rb
rspec-core-2.99.0.rc1 spec/support/isolated_directory.rb
rspec-core-2.14.8 spec/support/isolated_directory.rb
rspec-core-2.99.0.beta2 spec/support/isolated_directory.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-core-2.14.7/spec/support/isolated_directory.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/isolated_directory.rb
dxruby_rp5-0.0.3 spec/vendor/rspec-core-2.14.7/spec/support/isolated_directory.rb