-
-
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
Use Ruby's built-in windows platform detection #813
Conversation
74c4231
to
3f00f77
Compare
3f00f77
to
a726aa9
Compare
Sadly, this interchange dependency on Cucumber for dependency on RubyGems. While I understand, that RubyGems is mostly available, I don't think it needs to be always the case, e.g. in case |
I am thinking, would it be acceptable to use |
Unfortunately, rspec-support is only for internal use by rspec, so not something we can rely on. |
|
This is the issue for example with the rspec-core v3.10 spec suite, which uses the When I follow steps for running the CI with unrestricted Aruba version (which pulls in Aruba 2.0), available in my branch: https://github.com/jackorp/rspec-core/tree/unrestrict-aruba
then I get an exception regarding the Gem module:
|
Thanks, @jackorp, I made an issue to track this. |
Summary
Use Ruby's built-in windows platform detection.
Details
Use
Gem.win_platform?
instead of piggy-backing on Cucumber to check if we're running on Windows.Motivation and Context
This avoids the need to load Cucumber when using Aruba with RSpec. A step toward fixing #402 and #806.
How Has This Been Tested?
Mostly CI.
Types of changes
Checklist: