module Athena::Console::Spec::Tester
Overview
Contains common logic shared by both ACON::Spec::CommandTester and ACON::Spec::ApplicationTester.
Direct including types
Defined in:
spec.crInstance Method Summary
-
#assert_command_is_not_successful(message : String = "", *, file : String = __FILE__, line : Int32 = __LINE__) : Nil
Asserts that the return
#statusis NOT successful. -
#assert_command_is_successful(message : String = "", *, file : String = __FILE__, line : Int32 = __LINE__) : Nil
Asserts that the return
#statusis successful. -
#display(normalize : Bool = false) : String
Returns the output resulting from running the command.
-
#error_output(normalize : Bool = false) : String
Returns the error output resulting from running the command.
-
#inputs(*args : String) : Nil
Helper method to setting the
#inputs=property. -
#inputs=(inputs : Array(String))
Sets an array of values that will be used as the input to the command.
-
#output : ACON::Output::Interface
Returns the
ACON::Output::Interfacebeing used by the tester. -
#output? : ACON::Output::Interface | Nil
Returns the
ACON::Output::Interfacebeing used by the tester. - #status : ACON::Command::Status | Nil
Instance Method Detail
Asserts that the return #status is NOT successful.
Asserts that the return #status is successful.
Returns the output resulting from running the command. Raises if called before executing the command.
Returns the error output resulting from running the command.
Raises if capture_stderr_separately was not set to true.
Sets an array of values that will be used as the input to the command.
RETURN is automatically assumed after each input.
Returns the ACON::Output::Interface being used by the tester.
Returns the ACON::Output::Interface being used by the tester.