add option to pass in destination to homesick clone

This commit is contained in:
Robin Wenglewski
2015-10-11 18:21:22 +02:00
parent 60d4458bbc
commit 171b4c1fb8
2 changed files with 15 additions and 6 deletions

View File

@@ -161,6 +161,14 @@ describe Homesick::CLI do
homesick.clone 'wfarr/dotfiles'
end
it 'accepts a destination', :focus do
expect(homesick).to receive(:git_clone)
.with('https://github.com/wfarr/dotfiles.git',
destination: Pathname.new('other-name'))
homesick.clone 'wfarr/dotfiles', 'other-name'
end
end
describe 'rc' do