-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined method `route' for RSpec::Core::Example #222
Comments
@nickgnd How did you fix this? I'm running into the same thing. |
Looking through this, I don't see a |
@oestrich Thanks for the quick reply. I have a full suite of request tests for my API, and I was hoping I could just basically move my |
These are very different from what you wrote in |
Hi, I'm trying to generate the api documentation of the web app that I'm working on.
I've followed the instructions step by step, but when I run the task:
bin/rake api:docs:generate
Before it lists all my expectations:
After that, it raises this exception:
/Users/nico/.rvm/gems/ruby-2.2.0/gems/rspec_api_documentation-4.4.0/lib/rspec_api_documentation/example.rb:14:in `method_missing': undefined method `route' for #<RSpec::Core::Example:0x007ffd36c261c8> (NoMethodError)
It seems that is missing the method route in RSpec Core library.
So I look into the RSpec Core docs and I don't found any method called route.
http://www.rubydoc.info/github/rspec/rspec-core/RSpec/Core/Example
Maybe there is a problem with the older version of RSpec::Core? I'm using the 3.2 version, but is available the v3.3. Or maybe is a problem with my spec or configuration?
I'm available for other details.
My dev environment from Gemfile.lock:
my api_documentation_helper file:
my personal task file (it looks under ./spec/api/ folder):
my spec file under api folder looks like:
The text was updated successfully, but these errors were encountered: