Apparently you can do this through the registry object:
describe Lita::Handlers::MyHandler, lita_handler: true do
before do
registry.config.handlers.my_handler.base_url = 'base url here'
registry.config.handlers.my_handler.details_path = 'some path'
...
end
... actual testing ...
end
I couldn't find this information anywhere in docs either. I finally figured it out by looking at tests of other plugins, so I figured I'd document it here.
Apparently you can do this through the
registry
object:I couldn't find this information anywhere in docs either. I finally figured it out by looking at tests of other plugins, so I figured I'd document it here.
Hope this helps!