Refactor CLI specs
This commit is contained in:
parent
01d7805760
commit
1b6a6f9cea
@ -23,14 +23,14 @@ module Uh
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'parses new CLI arguments' do
|
it 'parses new CLI arguments' do
|
||||||
cli = instance_spy CLI
|
cli
|
||||||
allow(described_class).to receive(:new) { cli }
|
allow(described_class).to receive(:new) { cli }
|
||||||
expect(cli).to receive :parse_arguments!
|
expect(cli).to receive :parse_arguments!
|
||||||
run
|
run
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'runs new CLI' do
|
it 'runs new CLI' do
|
||||||
cli = instance_spy CLI
|
cli
|
||||||
allow(described_class).to receive(:new) { cli }
|
allow(described_class).to receive(:new) { cli }
|
||||||
expect(cli).to receive :run
|
expect(cli).to receive :run
|
||||||
run
|
run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user