Add more acceptance tests for printing the Vagrant version

This commit is contained in:
Mitchell Hashimoto 2011-11-02 21:15:43 -07:00
parent 4c9ad26115
commit ec38417abb
1 changed files with 10 additions and 0 deletions

View File

@ -5,4 +5,14 @@ class VersionTest < AcceptanceTest
result = execute("vagrant", "version") result = execute("vagrant", "version")
assert_equal("Vagrant version #{config.vagrant_version}\n", result.stdout.read) assert_equal("Vagrant version #{config.vagrant_version}\n", result.stdout.read)
end end
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
end end