Sha256: 3a08f439777ec9e0b6aefc1e92daa3e5a7805dcf616d7504356734ed23a997e7
Contents?: true
Size: 1.9 KB
Versions: 2
Compression:
Stored size: 1.9 KB
Contents
require 'spec_helper' describe Homesick do before do @homesick = Homesick.new end describe "clone" do it "should symlink existing directories" do somewhere = create_construct somewhere.directory('wtf') wtf = somewhere + 'wtf' @homesick.should_receive(:ln_s).with(wtf.to_s, wtf.basename.to_s) @homesick.clone wtf.to_s end it "should clone git repo like git://host/path/to.git" do @homesick.should_receive(:git_clone).with('git://github.com/technicalpickles/pickled-vim.git') @homesick.clone "git://github.com/technicalpickles/pickled-vim.git" end it "should clone git repo like git@host:path/to.git" do @homesick.should_receive(:git_clone).with('git@github.com:technicalpickles/pickled-vim.git') @homesick.clone 'git@github.com:technicalpickles/pickled-vim.git' end it "should clone git repo like http://host/path/to.git" do @homesick.should_receive(:git_clone).with('http://github.com/technicalpickles/pickled-vim.git') @homesick.clone 'http://github.com/technicalpickles/pickled-vim.git' end it "should clone a github repo" do @homesick.should_receive(:git_clone).with('git://github.com/wfarr/dotfiles.git', :destination => 'wfarr/dotfiles') @homesick.clone "wfarr/dotfiles" end end describe "list" do # FIXME only passes in isolation. need to setup data a bit better xit "should say each castle in the castle directory" do @user_dir.directory '.homesick/repos' do |repos_dir| repos_dir.directory 'zomg' do |zomg| Dir.chdir do system "git init >/dev/null 2>&1" system "git remote add origin git://github.com/technicalpickles/zomg.git >/dev/null 2>&1" end end end @homesick.should_receive(:say_status).with("zomg", "git://github.com/technicalpickles/zomg.git", :cyan) @homesick.list end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
homesick-0.4.1 | spec/homesick_spec.rb |
homesick-0.4.0 | spec/homesick_spec.rb |