beam-community / stripity-stripe

An Elixir Library for Stripe
Other
965 stars 346 forks source link

Make sure code is loaded before checking function_exported?, or it will be false #794

Closed sb8244 closed 1 year ago

sb8244 commented 1 year ago

There is likely a better way to solve this, but wanted to put solution out for #793. This fixes my issue locally in test, although I didn't add test to library here.

Happy to look into a test, although it will be a bit difficult as I believe that your local app's code is always fully loaded by Elixir.