Refactor CLI specs
This commit is contained in:
parent
01d7805760
commit
1b6a6f9cea
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user