Specify alternate run control file path from CLI

This commit is contained in:
Thibault Jouan
2015-04-14 00:39:36 +00:00
parent 7493ab3284
commit 62c824cd7d
4 changed files with 24 additions and 0 deletions

View File

@@ -148,6 +148,15 @@ module Uh
end
end
context 'with run control option' do
let(:arguments) { %w[-f uhwmrc.rb] }
it 'assigns run control file path in the env' do
cli.parse_arguments!
expect(cli.env.rc_path).to eq 'uhwmrc.rb'
end
end
context 'with require option' do
let(:arguments) { %w[-r abbrev] }