added command for displaying foreman version

This commit is contained in:
Wojciech Wnętrzak
2012-06-12 17:16:35 +02:00
parent 7774b7f150
commit b1a2a4a0cd
2 changed files with 19 additions and 0 deletions
+10
View File
@@ -74,4 +74,14 @@ describe "Foreman::CLI", :fakefs do
end
end
describe "version" do
it "displays gem version" do
foreman("version").chomp.should == Foreman::VERSION
end
it "displays gem version on shortcut command" do
foreman("-v").chomp.should == Foreman::VERSION
end
end
end