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
Fix JRuby build #1401
Fix JRuby build #1401
Conversation
Still to do: SimpleCov. |
5d8c0fb
to
1b1f609
Compare
|
Actually, seems like we're using undefined behavior by calling it as What we're doing creates |
This clears up the spec by starting from an empty environment, so the expectation tests the requirement more directly.
JRuby does not perform automatic conversion from RuntimeError to String.
There are two reasons for this: - Coverage is not collected at all unless JRUBY_OPTS="--debug" is set, which slows down tests massively. - Coverage percentage differs from the result on CRuby, making this check unreliable.
Java and hence JRuby always emits a message about this environment variable, causing problems in output expectations.
The use of a first argument with a leading slash is undefined, breaks on JRuby, and wasn't doing anything useful on MRI either. We can just use the argument-less version.
Nice clean up. I'm happy to merge this as it is. Do you want to keep the current number of commits? |
Yes, they carry some nice comments on the changes. |
Fixes the JRuby build and makes it required.