Added a smoke test to ensure that calling bin/homesick outputs some text

This commit is contained in:
Jeremy Cook
2014-09-19 14:19:09 -04:00
parent e57b139e32
commit f034f773c5

View File

@@ -1,6 +1,7 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
require 'capture-output'
require 'pathname'
describe Homesick::CLI do
let(:home) { create_construct }
@@ -12,6 +13,18 @@ describe Homesick::CLI do
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
context 'has a .homesickrc' do
it 'runs the .homesickrc' do