test/tc_command.rb in gli-2.6.0.rc1 vs test/tc_command.rb in gli-2.6.0

- old
+ new

@@ -349,9 +349,17 @@ command = @app.commands[:baz] assert_equal :baz, command.name assert_equal [:blah], command.aliases end + def test_pre_exiting_false_causes_nonzero_exit + @app.pre { |*| false } + + assert_equal 65,@app.run(["bs"]) # BSD for "input data incorrect in some way" + assert_equal '',@fake_stderr.to_s + assert_equal '',@fake_stdout.to_s + end + private def assert_contained(output,regexp) assert_not_nil output.contained?(regexp), "Expected output to contain #{regexp.inspect}, output was:\n#{output}"