diff --git a/test/acceptance/version_test.rb b/test/acceptance/version_test.rb index f7f12506a..2b11233c1 100644 --- a/test/acceptance/version_test.rb +++ b/test/acceptance/version_test.rb @@ -5,4 +5,14 @@ class VersionTest < AcceptanceTest result = execute("vagrant", "version") assert_equal("Vagrant version #{config.vagrant_version}\n", result.stdout.read) 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