diff --git a/Gemfile b/Gemfile index 85448db..81f459e 100644 --- a/Gemfile +++ b/Gemfile @@ -12,4 +12,5 @@ group :development do gem "bundler", ">= 0.9.5" gem "jeweler", ">= 1.4.0" gem "rcov", ">= 0" + gem "devver-construct" end diff --git a/spec/homesick/homesick_spec.rb b/spec/homesick/homesick_spec.rb index 1ae6549..af4974f 100644 --- a/spec/homesick/homesick_spec.rb +++ b/spec/homesick/homesick_spec.rb @@ -5,13 +5,16 @@ describe "Homesick" do homesick = Homesick.new repos_dir = Pathname.new('~/.homesick/repos').expand_path homesick.clone "git://github.com/technicalpickles/pickled-vim.git" + File.directory?("#{repos_dir}/pickled-vim").should == true end it "should clone a github repo" do homesick = Homesick.new repos_dir = Pathname.new('~/.homesick/repos').expand_path + homesick.clone "wfarr/dotfiles" + File.directory?("#{repos_dir}/wfarr_dotfiles").should == true end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fa49e24..2cf79bb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,8 +3,8 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'homesick' require 'spec' require 'spec/autorun' - +require 'construct' Spec::Runner.configure do |config| - + config.include Construct::Helpers end