-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
bugfix: Undefined module/class Bundler
when running cucumber-rails from RubyMine
#810
Conversation
Only debate is whether it should be done this way or detected at runtime and required via another means? |
This is a tricky one. On the one hand, everyone uses Bundler. On the other hand, the error you encountered actually tells me not everyone uses Bundler. But then, why force it on people? Also, I vaguely remember the transition from Bundler 1.x to 2.0 was difficult because many gems depended on Bundler 1.x. Finally, if people want to use the Aruba::Api::Bundler they'll probably have Bundler installed. So, I'm leaning toward doing some form of runtime check here. |
This error came about when running tests through RM. Which is a reasonably valid use case. If we want to alter the runtime dependency to be more lax I'm happy to do that. But this does need adding in some way shape or form. |
@luke-hill what is RM? |
Sorry. RubyMine, it's a popular IDE for ruby. So for me running Aruba I just click on a feature and click "run" |
Ok, so using RubyMine leads to an error, but using just cucumber works? |
I believe so yes. But I only tested that adding this fixes the problem. I didn't dig deep into it as it felt not that big of an issue to add this as a runtime dep, because technically it is a runtime dep in this one area. Can amend if you would prefer to something a bit more dynamic. |
Bundler
when running cucumber-railsBundler
when running cucumber-rails from RubyMine
Ok, so just to be clear:
Correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense from a dependency standpoint, whether we understand RubyMine's behaviour or not.
I have just one small nit; once that's fixed this can be merged.
Bundler is a runtime dependency inside
aruba/api/bundler
- So require it as soSummary
Fix gemspec to pull in bundler as a requirement of using the gem (As it's needed to run some methods)
Details
Self-explanatory
Motivation and Context
When running cucumber-rails in a test/valid context, this throws an error when consuming aruba helpers
How Has This Been Tested?
CI / Manual
Types of changes
Checklist: