Started adding tests.

This commit is contained in:
Will Farrington
2010-03-04 01:34:14 -05:00
parent 9ff7737634
commit 23e318b001
2 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe "Homesick" do
it "should clone a git repo" do
homesick = Homesick.new
homesick.clone "git://github.com/technicalpickles/pickled-vim.git"
File.directory?("#{Pathname.new('~/.homesick/repos').expand_path}/pickled-vim").should == true
end
it "should clone the github repo" do
homesick = Homesick.new
homesick.clone "wfarr/dotfiles"
File.directory?("#{Pathname.new('~/.homesick/repos').expand_path}/wfarr_dotfiles").should == true
end
end