spec/lib/simulacrum/cli/parser_spec.rb in simulacrum-0.3.0 vs spec/lib/simulacrum/cli/parser_spec.rb in simulacrum-0.3.1

- old
+ new

@@ -50,64 +50,6 @@ let(:option) { '--verbose' } it { expect(subject.result.verbose).to eq(true) } end end - - describe '--runner' do - it { expect(subject.result.runner).to be_nil } - - context 'when the option is set' do - let(:option) { '--runner browserstack' } - - it { expect(subject.result.runner).to eq(:browserstack) } - end - - context 'when the option is set to an invalid value' do - let(:option) { '--runner dropbear' } - - it 'throws an InvalidArgument exception' do - expect { subject.result.runner }.to raise_error(OptionParser::InvalidArgument) - end - end - end - - describe '--username' do - it { expect(subject.result.username).to be_nil } - - context 'when the option is set' do - let(:option) { '--username justin' } - - it { expect(subject.result.username).to eq('justin') } - end - end - - describe '--apikey' do - it { expect(subject.result.apikey).to be_nil } - - context 'when the option is set' do - let(:option) { '--apikey 1234abcd' } - - it { expect(subject.result.apikey).to eq('1234abcd') } - end - end - - describe '--max-processes' do - it { expect(subject.result.max_processes).to be_nil } - - context 'when the option is set' do - let(:option) { '--max-processes 5' } - - it { expect(subject.result.max_processes).to eq(5) } - end - end - - describe '--browser' do - it { expect(subject.result.browser).to be_nil } - - context 'when the option is set' do - let(:option) { '--browser firefox' } - - it { expect(subject.result.browser).to eq(:firefox) } - end - end end