antonmi / espec

Elixir Behaviour Driven Development
Other
808 stars 62 forks source link

Doctests failing since the deprecation of old documentation format (elixir 1.7) #276

Closed johantell closed 6 years ago

johantell commented 6 years ago

Since Code.get_docs/2 is deprecated and returns nil whenever called in elixir 1.7+ all doc tests will fail with the error

  ** (ESpec.DocExample.Error) could not retrieve the documentation for module [MODULE_NAME].
 The module was not compiled with documentation or its beam file cannot be accessed

In order to support doctests ESpec need to use the newer format retrieved via Code.fetch_docs/1 when elixir 1.7+ is used.

antonmi commented 6 years ago

Thanks, @johantell ! Will fix it!

antonmi commented 6 years ago

Hi, @johantell ! The issue is fixed in 1.6.1. Please check it out!

johantell commented 6 years ago

@antonmi works like a charm. Good work! 💛💚💙