How can I set config on Lita Handler for tests?

4 views
Skip to first unread message

Luiz Carvalho

unread,
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?

Mike

unread,
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"`

-M


--
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 litaio+un...@googlegroups.com.
To post to this group, send email to lit...@googlegroups.com.
Visit this group at https://groups.google.com/group/litaio.
To view this discussion on the web visit https://groups.google.com/d/msgid/litaio/a46c1ca2-46e0-44d4-a2bd-afeffdff1964%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luiz Carvalho

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