test/cli/test_cli.rb in nanoc-3.3.6 vs test/cli/test_cli.rb in nanoc-3.3.7

- old
+ new

@@ -85,9 +85,14 @@ FileUtils.mkdir_p('commands') File.open('commands/_test.rb', 'w') { |io| io.write('raise "meh"') } # Run command position_before = $stderr.tell + Nanoc::CLI::ErrorHandler.disable + assert_raises RuntimeError do + Nanoc::CLI.run %w( _test ) + end + Nanoc::CLI::ErrorHandler.enable assert_raises SystemExit do Nanoc::CLI.run %w( _test ) end position_after = $stderr.tell