2011-11-03 04:09:38 +00:00
|
|
|
require File.expand_path("../base", __FILE__)
|
|
|
|
|
2011-11-07 07:47:23 +00:00
|
|
|
describe "vagrant version" do
|
|
|
|
include_context "acceptance"
|
|
|
|
|
|
|
|
it "prints the version to stdout" do
|
2011-11-03 04:09:38 +00:00
|
|
|
result = execute("vagrant", "version")
|
2011-11-09 07:03:15 +00:00
|
|
|
result.stdout.should match_output(:version, config.vagrant_version)
|
2011-11-03 04:09:38 +00:00
|
|
|
end
|
2011-11-03 04:15:43 +00:00
|
|
|
|
2011-11-07 07:47:23 +00:00
|
|
|
it "prints the version when called with '-v'" do
|
2011-11-03 04:15:43 +00:00
|
|
|
result = execute("vagrant", "-v")
|
2011-11-09 07:03:15 +00:00
|
|
|
result.stdout.should match_output(:version, config.vagrant_version)
|
2011-11-03 04:15:43 +00:00
|
|
|
end
|
|
|
|
|
2011-11-07 07:47:23 +00:00
|
|
|
it "prints the version when called with '--version'" do
|
2011-11-03 04:15:43 +00:00
|
|
|
result = execute("vagrant", "--version")
|
2011-11-09 07:03:15 +00:00
|
|
|
result.stdout.should match_output(:version, config.vagrant_version)
|
2011-11-03 04:15:43 +00:00
|
|
|
end
|
2011-11-03 04:09:38 +00:00
|
|
|
end
|