Added devver-construct.

This commit is contained in:
Joshua Nichols
2010-03-10 08:25:16 -05:00
parent 93c357f0ca
commit 7fd44c7fe5
3 changed files with 6 additions and 2 deletions

View File

@@ -12,4 +12,5 @@ group :development do
gem "bundler", ">= 0.9.5" gem "bundler", ">= 0.9.5"
gem "jeweler", ">= 1.4.0" gem "jeweler", ">= 1.4.0"
gem "rcov", ">= 0" gem "rcov", ">= 0"
gem "devver-construct"
end end

View File

@@ -5,13 +5,16 @@ describe "Homesick" do
homesick = Homesick.new homesick = Homesick.new
repos_dir = Pathname.new('~/.homesick/repos').expand_path repos_dir = Pathname.new('~/.homesick/repos').expand_path
homesick.clone "git://github.com/technicalpickles/pickled-vim.git" homesick.clone "git://github.com/technicalpickles/pickled-vim.git"
File.directory?("#{repos_dir}/pickled-vim").should == true File.directory?("#{repos_dir}/pickled-vim").should == true
end end
it "should clone a github repo" do it "should clone a github repo" do
homesick = Homesick.new homesick = Homesick.new
repos_dir = Pathname.new('~/.homesick/repos').expand_path repos_dir = Pathname.new('~/.homesick/repos').expand_path
homesick.clone "wfarr/dotfiles" homesick.clone "wfarr/dotfiles"
File.directory?("#{repos_dir}/wfarr_dotfiles").should == true File.directory?("#{repos_dir}/wfarr_dotfiles").should == true
end end
end end

View File

@@ -3,8 +3,8 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'homesick' require 'homesick'
require 'spec' require 'spec'
require 'spec/autorun' require 'spec/autorun'
require 'construct'
Spec::Runner.configure do |config| Spec::Runner.configure do |config|
config.include Construct::Helpers
end end