Adding the module
Since this is support code, put this in the support folder.
You can now use it like this from anywhere in your test - YourProject::notify_slack("message"). I use it to post info about things that the test is doing, finding, or creating that may be of use for other testing going on, or for manual inspection.
You can also have reporting going live as scenarios are finished using this hook.