-
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
NoMethodError: undefined method client #167
Comments
It's working now, but I have no idea why. |
I see. The problem was in my helper I had used (all) the Configuration options listed in the Readme and assumed that # Values listed are the default values means it would be safe to just use them as is. Turned out I had to comment out the line:
Of course, now the error message makes sense and I actually had looked at that line and the accompanying comment without realizing. Maybe it should be commented out by default in this example file. |
So the problem was how setting that option specifically works. It defines a new alias method and then undefs the original. So it defined an alias to I'm not sure this is a problem because they're the defaults and you shouldn't have to copy any of them in order for the configuration to kick in. If you want to make a PR for the setter method skipping the module eval if the value didn't change I'd accept it. |
Hi all,
I think I'm running out of ideas with this. I have installed rspec_api_documentation according to the docs. I'm trying to use it with rails-api.
When I add a test in "spec/acceptance/tools_spec.rb" with the following content:
I tried many variations but I always get
Why can't it find a "client"? I have seen the "client" mentioned in the gotchas, but I think I don't want to define my own.
I have the following in Gemfile:
Any hints how to solve this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: