vagrant/test/acceptance_old/resume_test.rb

18 lines
560 B
Ruby
Raw Normal View History

2011-11-24 23:28:28 +00:00
require File.expand_path("../base", __FILE__)
2011-12-11 23:53:11 +00:00
require "acceptance/support/shared/command_examples"
2011-11-24 23:28:28 +00:00
describe "vagrant resume" do
include_context "acceptance"
it_behaves_like "a command that requires a Vagrantfile", ["vagrant", "resume"]
it "succeeds and ignores if the VM is not created" do
require_box("default")
assert_execute("vagrant", "box", "add", "base", box_path("default"))
assert_execute("vagrant", "init")
result = assert_execute("vagrant", "resume")
result.stdout.should match_output(:vm_not_created_warning)
end
end