rspec / rspec-support

Common code needed by the other RSpec gems. Not intended for direct use.
https://rspec.info
MIT License
99 stars 103 forks source link

Don't raise exception on JRuby 9k < 9.2.1.0 #400

Closed BrianHawley closed 4 years ago

BrianHawley commented 4 years ago

JRuby 9k 9.2.0.0 and lower will has a bug in Ripper.sexp that raises a NoMethodError when analyzing code that even references a method with keyword arguments. This makes failure formatting raise that exception. Best to just not use Ripper on JRuby 9k < 9.2.1.0.

[Fixes #399]

JonRowe commented 4 years ago

Thanks!