Extract the CLI into a new Homesick::CLI class, while making Homesick a module

This commit is contained in:
Nicolas McCurdy
2014-04-16 17:20:05 -04:00
parent 41f3f9d374
commit 705a416d74
8 changed files with 346 additions and 339 deletions

View File

@@ -2,13 +2,13 @@
require 'spec_helper'
require 'capture-output'
describe 'homesick' do
describe Homesick::CLI do
let(:home) { create_construct }
after { home.destroy! }
let(:castles) { home.directory('.homesick/repos') }
let(:homesick) { Homesick.new }
let(:homesick) { Homesick::CLI.new }
before { allow(homesick).to receive(:repos_dir).and_return(castles) }
@@ -176,7 +176,7 @@ describe 'homesick' do
end
context 'when forced' do
let(:homesick) { Homesick.new [], force: true }
let(:homesick) { Homesick::CLI.new [], force: true }
it 'can override symlinks to directories' do
somewhere_else = create_construct