2011-11-03 04:09:38 +00:00
|
|
|
require File.expand_path("../base", __FILE__)
|
|
|
|
|
|
|
|
class VersionTest < AcceptanceTest
|
|
|
|
should "print the version to stdout" do
|
|
|
|
result = execute("vagrant", "version")
|
|
|
|
assert_equal("Vagrant version #{config.vagrant_version}\n", result.stdout.read)
|
|
|
|
end
|
2011-11-03 04:15:43 +00:00
|
|
|
|
|
|
|
should "print the version with '-v'" do
|
|
|
|
result = execute("vagrant", "-v")
|
|
|
|
assert_equal("Vagrant version #{config.vagrant_version}\n", result.stdout.read)
|
|
|
|
end
|
|
|
|
|
|
|
|
should "print the version with '--version'" do
|
|
|
|
result = execute("vagrant", "--version")
|
|
|
|
assert_equal("Vagrant version #{config.vagrant_version}\n", result.stdout.read)
|
|
|
|
end
|
2011-11-03 04:09:38 +00:00
|
|
|
end
|