From 23e318b0011cdbebca05c2f776193fdc9b0a240b Mon Sep 17 00:00:00 2001 From: Will Farrington Date: Thu, 4 Mar 2010 01:34:14 -0500 Subject: [PATCH] Started adding tests. --- spec/homesick/homesick_spec.rb | 15 +++++++++++++++ spec/homesick_spec.rb | 7 ------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 spec/homesick/homesick_spec.rb delete mode 100644 spec/homesick_spec.rb 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