-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
cucumber v 1.1.0 fails when used on a rails project with model named Usage #158
Comments
Here is a patch
|
If this is the solution, then we could presumably delete lots more of the method: we don't need to do any processing of the camel_cased_word at all anymore, do we? Could you please provide this as a pull request? |
I know. In this patch was applied, the whole constantize method could be refactored away, replaced by |
I think that the problem has been fixed by PR #346 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
On a rails project I use cucumber. We have a model named Usage.
When I run
it fails because constantize returns the constanct
Usage
and without the constant being fully qualified, it evaluates to the one that derives from ActiveRecord. The result isOne resolution is to make constantize return the fully qualified constant, I will provide a patch.
You can reproduce by creating a rails project and use cucumber-rails and create a model named Usage, then run
The text was updated successfully, but these errors were encountered: