Module: TTYtest::ExitCodeAssertions

Defined in:
lib/ttytest/assertions/exit_code_assertions.rb

Overview

Exit Code Assertions for ttytest2. Not finished and added yet.

Instance Method Summary collapse

Instance Method Details

#assert_exit_code(code) ⇒ Object

Asserts that the exit code of the previous command matches the specified value Note: if you are tracking current row in your tests, this command will take up 2 lines. It echos the previous commands exit code to the screen and then reads it from there

Parameters:

  • code (Integer)

    the expected exit code

Raises:

  • (MatchError)

    if the exit code found does not match specified value



11
# File 'lib/ttytest/assertions/exit_code_assertions.rb', line 11

def assert_exit_code(code) end