spec/relish/commands/config_spec.rb in relish-0.0.9 vs spec/relish/commands/config_spec.rb in relish-0.1.0

- old
+ new

@@ -2,37 +2,29 @@ module Relish module Command describe Config do + describe '#default' do let(:config) { described_class.new } - it 'calls #show' do - config.should_receive(:show) - config.default - end - end - - describe '#show' do - let(:config) { described_class.new } - context 'with a local options file' do before do File.should_receive(:exists?).and_return(true) IO.should_receive(:read).and_return('options') end it 'outputs the contents' do config.should_receive(:puts).with('options') - config.show + config.default end end context 'without a local options file' do it 'outputs the correct message' do config.should_receive(:puts).with('No .relish file exists') - config.show + config.default end end end end \ No newline at end of file