# How to solve “undefined method `documentations’ for RspecApiDocumentation:Module”

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769077445869/6541d170-c6f5-4721-97ab-06c1b07a4e56.jpeg)

Photo by [Jake Walker](https://unsplash.com/@jakewalker?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/computer-error?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

If you encounter the following problem while using `rspec_api_documentation` gem:

/usr/local/bundle/gems/rspec\_api\_documentation-6.1.0/lib/rspec\_api\_documentation/api\_formatter.rb:16:in \`start': undefined method \`documentations' for RspecApiDocumentation:Module (NoMethodError)

RspecApiDocumentation.documentations.each(&:clear\_docs)

Try to add this at the top of `spec/spec_helper.rb` file:

%[https://gist.github.com/48364c9ee89577c2f2ef9d824b9d6064]
