# File lib/hammer_cli/testing/command_assertions.rb, line 7 def initialize(expected_out="", expected_err="", expected_exit_code=0) @expected_out = expected_out @expected_err = expected_err @expected_exit_code = expected_exit_code end
# File lib/hammer_cli/testing/command_assertions.rb, line 13 def assert_match(test_ctx, actual_result) test_ctx.assert_equal_or_match @expected_err, actual_result.err test_ctx.assert_equal_or_match @expected_out, actual_result.out test_ctx.assert_exit_code_equal @expected_exit_code, actual_result.exit_code end