Closed Telmo closed 4 years ago
From the information you've shared, I am not seeing an obvious problem. I tried creating a handler with the exact same code and the tests pass for me. >_<
Your example handler code had:
http.get "/healtchcheck" do |request, response|
did you mean
http.get "/healthcheck" do |request, response|
?
I am trying to create a very simple handler. I used the command
lita handler health
to generate the handler. the expected behavior is that of when the/healthcheck
endpoint is hit is just returns "OK". the code is fairly simple and straight forward:lita-health/lib/lita/handlers/health.rb
And the specs are also rather basic:
spec/lita/handlers/health_spec.rb
But for some reason the endpoint is not being route even form the specs:
I've followed the documentation for created the HTTPRoutes and to test them https://docs.lita.io/plugin-authoring/testing/#testing-handlers https://docs.lita.io/plugin-authoring/testing/#testing-routes https://docs.lita.io/plugin-authoring/testing/#testing-behavior
I am using lite 4.7.0
the ruby version is 2.3.1p112
Am I missing something? any help would be appreciated.