spec/unit/wgif/argument_parser_spec.rb in wgif-0.3.1 vs spec/unit/wgif/argument_parser_spec.rb in wgif-0.4.0

- old
+ new

@@ -77,10 +77,20 @@ it 'parses the long preview option' do options = parser.parse_options ['--preview'] expect(options[:preview]).to eq(true) end + it 'parses the short output option' do + options = parser.parse_options ['-i'] + expect(options[:info]).to eq(true) + end + + it 'parses the long output option' do + options = parser.parse_options ['--info'] + expect(options[:info]).to eq(true) + end + it 'handles args in wacky order' do args = parser.parse_args([ '-d', '1.5', '--upload', @@ -148,6 +158,6 @@ duration: 1.0, output: 'out.gif', trim_from: '00:00:00', url: 'http://lol.wut'}) end -end +end \ No newline at end of file