Refactor CLI specs

This commit is contained in:
Thibault Jouan 2015-04-08 17:18:44 +00:00
parent 01d7805760
commit 1b6a6f9cea

View File

@ -23,14 +23,14 @@ module Uh
end
it 'parses new CLI arguments' do
cli = instance_spy CLI
cli
allow(described_class).to receive(:new) { cli }
expect(cli).to receive :parse_arguments!
run
end
it 'runs new CLI' do
cli = instance_spy CLI
cli
allow(described_class).to receive(:new) { cli }
expect(cli).to receive :run
run