Sha256: 402d4172d1db190d84373a9d104206a7d4eb15356f7e9a41013282b4d0df7ba1

Contents?: true

Size: 1.07 KB

Versions: 55

Compression:

Stored size: 1.07 KB

Contents

require File.expand_path("../base", __FILE__)
require "acceptance/support/shared/command_examples"

describe "vagrant up", "basics" do
  include_context "acceptance"
  it_behaves_like "a command that requires a Vagrantfile", ["vagrant", "up"]

  # This creates an initial environment that is ready for a "vagrant up"
  def initialize_valid_environment
    require_box("default")

    assert_execute("vagrant", "box", "add", "base", box_path("default"))
    assert_execute("vagrant", "init")
  end

  it "brings up a running virtual machine" do
    initialize_valid_environment

    assert_execute("vagrant", "up")
    result = assert_execute("vagrant", "status")
    result.stdout.should match_output(:status, "default", "running")
  end

  it "is able to run if Vagrantfile is in a parent directory" do
    initialize_valid_environment

    # Create a subdirectory in the working directory and use
    # that as the CWD for `vagrant up` and verify it still works
    foodir = environment.workdir.join("foo")
    foodir.mkdir
    assert_execute("vagrant", "up", :chdir => foodir.to_s)
  end
end

Version data entries

55 entries across 55 versions & 11 rubygems

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/test/acceptance/up_basic_test.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/test/acceptance/up_basic_test.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/test/acceptance/up_basic_test.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/test/acceptance/up_basic_test.rb
bmhatfield-vagrant-1.0.10 test/acceptance/up_basic_test.rb
bmhatfield-vagrant-1.0.9 test/acceptance/up_basic_test.rb
tnargav-1.3.6 test/acceptance/up_basic_test.rb
tnargav-1.3.3 test/acceptance/up_basic_test.rb
bmhatfield-vagrant-1.0.8 test/acceptance/up_basic_test.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/acceptance/up_basic_test.rb
tnargav-1.2.3 test/acceptance/up_basic_test.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/acceptance/up_basic_test.rb
bmhatfield-vagrant-1.0.7 test/acceptance/up_basic_test.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/test/acceptance/up_basic_test.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/test/acceptance/up_basic_test.rb
tnargav-1.2.2 test/acceptance/up_basic_test.rb
vagrantup-1.1.3 test/acceptance/up_basic_test.rb
vagrantup-1.1.2 test/acceptance/up_basic_test.rb
vagrantup-1.1.1 test/acceptance/up_basic_test.rb
vagrantup-1.1.0 test/acceptance/up_basic_test.rb