analytics-elixir icon indicating copy to clipboard operation
analytics-elixir copied to clipboard

Assert a Segment call

Open rlopzc opened this issue 4 years ago • 0 comments

Hello! Thanks for this lib, very much needed

Is there a way to assert in a test that a call was made to Segment?

I tried using send_to_http: false but the debug log level is not recorded in the test environment. Changing it in config/test.exs doesn't make sense because ecto also uses debug level for queries which makes it hard to assert for the Segment debug log.

Thanks!

rlopzc avatar Sep 20 '21 20:09 rlopzc