Added command to display current version of homesick.

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

View File

@@ -565,4 +565,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