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:
parent
6a29ed8342
commit
707a6e7d62
1 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue