Sha256: 28c96fdada103d4ec73c3cf6aed91e3a0b22762b07c8305e31ea0c109b6c5179

Contents?: true

Size: 187 Bytes

Versions: 74

Compression:

Stored size: 187 Bytes

Contents

require 'tmpdir'

RSpec.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

74 entries across 69 versions & 22 rubygems

Version Path
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/rspec-support-3.1.2/lib/rspec/support/spec/with_isolated_directory.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/rspec-support-3.1.2/lib/rspec/support/spec/with_isolated_directory.rb
logstash-codec-json-2.0.3 vendor/gems/rspec-support-3.1.2/lib/rspec/support/spec/with_isolated_directory.rb
rspec-support-3.4.0 lib/rspec/support/spec/with_isolated_directory.rb
swift-pyrite-0.1.1 vendor/bundle/ruby/2.0.0/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
swift-pyrite-0.1.0 vendor/bundle/ruby/2.0.0/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
suzuko-0.1.8 vendor/bundle/ruby/2.0.0/gems/rspec-support-3.2.2/lib/rspec/support/spec/with_isolated_directory.rb
suzuko-0.1.7 vendor/bundle/ruby/2.0.0/gems/rspec-support-3.2.2/lib/rspec/support/spec/with_isolated_directory.rb
opal-rspec-0.5.0.beta3 rspec-support/lib/rspec/support/spec/with_isolated_directory.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/rspec-support-3.1.2/lib/rspec/support/spec/with_isolated_directory.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/rspec-support-3.1.2/lib/rspec/support/spec/with_isolated_directory.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
sublimetheme-1.0.1 path/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
sublimetheme-1.0.0 path/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb
opal-rspec-0.5.0.beta2 rspec-support/lib/rspec/support/spec/with_isolated_directory.rb