From ec38417abb879240ab30e06a563f4fb28515262f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 2 Nov 2011 21:15:43 -0700 Subject: [PATCH] Add more acceptance tests for printing the Vagrant version --- test/acceptance/version_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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