How can I set config on Lita Handler for tests?

Skip to first unread message

Luiz Carvalho

May 10, 2017, 9:59:45 AM5/10/17
to Lita

My handler have 4 configs input

  config :base_url
  config :details_path
  config :create_path
  config :token

I set to them in my lita_config file, but to test my handler, I need set values to him on my specs as well. How can I do this?


May 10, 2017, 10:40:42 AM5/10/17
to Luiz Carvalho, Lita
Here's an example from the lita-jenkins handler:
There's a couple more in that file.

This is largely due to the `registry` that you get with enabling `require "lita/rspec"`


You received this message because you are subscribed to the Google Groups "Lita" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Luiz Carvalho

May 10, 2017, 2:21:56 PM5/10/17
to Lita,
Thanks Mike, I'll try this! :)
Reply all
Reply to author
0 new messages