You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lita
Hi all,
I would like to start using templates for different adapters (HipChat, Slack etc.), but how do I test them in Rspec? Is there a way to specify which adapter to use when using 'send_message'?
Thanks! Ingo
Jimmy Cuadra
unread,
May 3, 2016, 6:52:19 AM5/3/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ingo Weiss, Lita
Hi Ingo,
There isn't a good mechanism for testing that right now, since the template resolving logic just branches based on the current robot's adapter, and the adapter during testing is always the test adapter. This should be improved, though, so I encourage you to file an issue on GitHub! If you have an idea what you'd like the test code to look like, that'd be very helpful.