Sha256: e9d7868d40ceac762f8290b4e12eb42bf4a3e6893b30b08cf26ec1d531998e4c
Contents?: true
Size: 985 Bytes
Versions: 6
Compression:
Stored size: 985 Bytes
Contents
require 'spec_helper' 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 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 end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems