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")
|
2011-11-05 21:59:17 +00:00
|
|
|
assert(output(result.stdout).is_version?(config.vagrant_version),
|
|
|
|
"output should be version")
|
2011-11-03 04:09:38 +00:00
|
|
|
end
|
2011-11-03 04:15:43 +00:00
|
|
|
|
|
|
|
should "print the version with '-v'" do
|
|
|
|
result = execute("vagrant", "-v")
|
2011-11-05 21:59:17 +00:00
|
|
|
assert(output(result.stdout).is_version?(config.vagrant_version),
|
|
|
|
"output should be version")
|
2011-11-03 04:15:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
should "print the version with '--version'" do
|
|
|
|
result = execute("vagrant", "--version")
|
2011-11-05 21:59:17 +00:00
|
|
|
assert(output(result.stdout).is_version?(config.vagrant_version),
|
|
|
|
"output should be version")
|
2011-11-03 04:15:43 +00:00
|
|
|
end
|
2011-11-03 04:09:38 +00:00
|
|
|
end
|