Implement CLI debug option

This commit is contained in:
Thibault Jouan
2014-10-12 18:26:48 +00:00
parent 25d03d4322
commit e22d0039e1
8 changed files with 64 additions and 8 deletions

View File

@@ -112,6 +112,15 @@ module Producer::Core
end
end
context 'with debug option' do
let(:options) { %w[-d] }
it 'assigns the given target to the env' do
cli.parse_arguments!
expect(cli.env).to be_debug
end
end
context 'with combined options' do
let(:options) { %w[-vn]}