module

Athena::Console::Spec::Tester

Contains common logic shared by both ACON::Spec::CommandTester and ACON::Spec::ApplicationTester.

Instance methods

assert_command_is_not_successful(message : String = "", *, file : String = __FILE__, line : Int32 = __LINE__) : Nil

Asserts that the return #status is NOT successful.

Source
assert_command_is_successful(message : String = "", *, file : String = __FILE__, line : Int32 = __LINE__) : Nil

Asserts that the return #status is successful.

Source
display(normalize : Bool = false) : String

Returns the output resulting from running the command. Raises if called before executing the command.

Source
error_output(normalize : Bool = false) : String

Returns the error output resulting from running the command. Raises if capture_stderr_separately was not set to true.

Source
inputs(*args : String) : Nil

Helper method to setting the #inputs= property.

Source
inputs=(inputs : Array(String))

Sets an array of values that will be used as the input to the command. RETURN is automatically assumed after each input.

Source
output

Returns the ACON::Output::Interface being used by the tester.

Source
output?

Returns the ACON::Output::Interface being used by the tester.

Source
status
Source