-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
test suite & RUBY_VERSION in code #2540
Comments
Whats the error @MSP-Greg ? |
Same error as running The error is 'TypeError: no implicit conversion of Hash into Integer' With the tests I wrote, I could get around the issue. The greater issue is when testing modifies the 'appearance' of the Ruby engine/version, etc, code that relies on correctly knowing that fails... |
Add the following file to test/rubygems, run it under Ruby < 2.5 and Ruby >= 2.5, and you'll see the error generated. As you know, can't attached *.rb files, so a rename is needed... |
@MSP-Greg this one still an issue for you? |
I'm here! I was looking at all my open issues... Sometime ago the RG tests 'converted' to running random. There have been several commits addressing problems with interfering tests (which is the issue here). This issue seems to have been fixed... |
While writing tests for PR #2539, I ran into an issue with the following line in
Gem::Util.glob_files_in_dir
:rubygems/lib/rubygems/util.rb
Line 124 in eb01ecd
Gem::TestCase
has several methods affectingRUBY_VERSION
. Ifutil_set_RUBY_VERSION
is used in testing andGem::Util.glob_files_in_dir
is called, an error may occur.There's several ways of working around this issue, so I thought an issue would be best...
This issue is related to:
gem
Here are my current environment details:
I will abide by the code of conduct.
The text was updated successfully, but these errors were encountered: