Added command to display current version of homesick.

This commit is contained in:
Jeremy Cook
2014-01-05 14:27:52 -05:00
parent ab46cf7b2f
commit df8f6b1cb0
4 changed files with 29 additions and 1 deletions

View File

@@ -611,4 +611,11 @@ describe 'homesick' do
expect { homesick.open "castle_repo" }.to raise_error(SystemExit)
end
end
describe 'version' do
it 'should print the current version of homesick' do
text = Capture.stdout { homesick.version }
text.chomp.should =~ /\d+\.\d+\.\d+/
end
end
end