Allow symlinking existing directories into repos, instead of cloning.

This commit is contained in:
Joshua Nichols
2010-04-01 21:19:25 -04:00
parent 5ac2a0739a
commit 9a22513ba4
3 changed files with 15 additions and 3 deletions

View File

@@ -6,6 +6,15 @@ describe Homesick do
end
describe "clone" do
it "should symlink existing directories" do
somewhere = create_construct
somewhere.directory('wtf')
wtf = somewhere + 'wtf'
@homesick.should_receive(:ln_s).with(wtf.to_s, wtf.basename.to_s)
@homesick.clone wtf.to_s
end
it "should clone git repo like git://host/path/to.git" do
@homesick.should_receive(:git_clone).with('git://github.com/technicalpickles/pickled-vim.git')