diff --git a/spec/homesick/homesick_spec.rb b/spec/homesick/homesick_spec.rb new file mode 100644 index 0000000..b31412a --- /dev/null +++ b/spec/homesick/homesick_spec.rb @@ -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 diff --git a/spec/homesick_spec.rb b/spec/homesick_spec.rb deleted file mode 100644 index fb81f68..0000000 --- a/spec/homesick_spec.rb +++ /dev/null @@ -1,7 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/spec_helper') - -describe "Homesick" do - it "fails" do - fail "hey buddy, you should probably rename this file and start specing for real" - end -end