1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Work around an unexpected success under JRuby

This commit is contained in:
Dmitry Gutov 2016-12-13 23:46:28 +02:00
parent 6a29ed8342
commit 707a6e7d62

View file

@ -225,15 +225,18 @@ describe Pry::InputCompleter do
completer_test(self, nil, false).call("[].size.parse_printf_format")
end
it 'ignores methods from modules that override Object#hash incompatibly' do
_m = Module.new do
def self.hash(a, b)
if !Pry::Helpers::BaseHelpers.jruby?
# Classes that override .hash are still hashable in JRuby, for some reason.
it 'ignores methods from modules that override Object#hash incompatibly' do
_m = Module.new do
def self.hash(a, b)
end
def aaaa
end
end
def aaaa
end
completer_test(self, nil, false).call("[].size.aaaa")
end
completer_test(self, nil, false).call("[].size.aaaa")
end
end