Sha256: e9a007092bf1223c1bb4e37f808f3c19cc3b22a65ca262713c2afa443c97698d

Contents?: true

Size: 661 Bytes

Versions: 96

Compression:

Stored size: 661 Bytes

Contents

require "vagrant-spec/isolated_environment"

describe Vagrant::Spec::IsolatedEnvironment do
  after do
    subject.close
  end

  it "should have a home dir" do
    expect(subject.homedir).to be_directory
    expect(subject.homedir.children).to be_empty
  end

  it "should have a work dir" do
    expect(subject.workdir).to be_directory
    expect(subject.workdir.children).to be_empty
  end

  context "after close" do
    before do
      subject.close
    end

    it "should not have a home dir" do
      expect(subject.homedir).to_not be_exist
    end

    it "should not have a work dir" do
      expect(subject.workdir).to_not be_exist
    end
  end
end

Version data entries

96 entries across 29 versions & 2 rubygems

Version Path
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/spec/isolated_environment_spec.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/isolated_environment_spec.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-spec-94a9d31ba18b/spec/isolated_environment_spec.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/isolated_environment_spec.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/isolated_environment_spec.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/isolated_environment_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/isolated_environment_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-af86757912f7/spec/isolated_environment_spec.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/isolated_environment_spec.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/isolated_environment_spec.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/isolated_environment_spec.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/isolated_environment_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/isolated_environment_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/spec/isolated_environment_spec.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/isolated_environment_spec.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-spec-1df5a3af81cb/spec/isolated_environment_spec.rb