@@ -1,6 +1,7 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'capture-output'
|
require 'capture-output'
|
||||||
|
require 'pathname'
|
||||||
|
|
||||||
describe Homesick::CLI do
|
describe Homesick::CLI do
|
||||||
let(:home) { create_construct }
|
let(:home) { create_construct }
|
||||||
@@ -12,6 +13,18 @@ describe Homesick::CLI do
|
|||||||
|
|
||||||
before { allow(homesick).to receive(:repos_dir).and_return(castles) }
|
before { allow(homesick).to receive(:repos_dir).and_return(castles) }
|
||||||
|
|
||||||
|
describe 'smoke test' do
|
||||||
|
context 'when running bin/homesick' do
|
||||||
|
before do
|
||||||
|
bin_path = Pathname.new(__FILE__).parent.parent
|
||||||
|
@output = `#{bin_path.expand_path}/bin/homesick`
|
||||||
|
end
|
||||||
|
it 'should output some text when bin/homesick is called' do
|
||||||
|
expect(@output.length).to be > 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe 'clone' do
|
describe 'clone' do
|
||||||
context 'has a .homesickrc' do
|
context 'has a .homesickrc' do
|
||||||
it 'runs the .homesickrc' do
|
it 'runs the .homesickrc' do
|
||||||
|
|||||||
Reference in New Issue
Block a user