NAME

Whatbot::Test -- Unit test helpers for whatbot.

DESCRIPTION

This object provides helper methods for unit testing whatbot commands.

METHODS

get_default_config()

Provide a default Whatbot::Config instance with an empty test database already configured. This is used by initialize_state().

initialize_state()

Initializes a default Whatbot::State for initializing new Commands or other Components. This utilizes the test database in get_default_config() and logs to the screen.

initialize_models()

Loads and initializes all available models/databases. Must be used before testing a command that utilizes database calls.

LICENSE/COPYRIGHT

Be excellent to each other and party on, dudes.