test/lib/docparser/parser_test.rb in docparser-0.1.3 vs test/lib/docparser/parser_test.rb in docparser-0.1.4

- old
+ new

@@ -28,11 +28,11 @@ logger = Log4r::Logger['docparser'] old_output = logger.outputters.pop logger.level.must_equal Log4r::ERROR parser = DocParser::Parser.new(quiet: false) logger.level.must_equal Log4r::INFO - parser = DocParser::Parser.new() + parser = DocParser::Parser.new logger.level.must_equal Log4r::INFO logger.outputters.push old_output end it 'should only process the files in range' do @@ -74,10 +74,10 @@ end $encoding.must_equal 'iso-8859-1' end it 'should give an Exception if output is not supported' do - -> do + lambda do DocParser::Parser.new(quiet: true, output: 1) end.must_raise(ArgumentError) end it 'should support one output' do \ No newline at end of file