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

Remove non-determinancy caused by rbx oddity

This commit is contained in:
Conrad Irwin 2012-07-05 21:17:25 -07:00
parent 7074302105
commit 4902c7215a

View file

@ -233,7 +233,8 @@ class Pry
ims = all_methods_for(wrapped)
ims = ims.select(&:source_location)
# reject __class_init__ because it's an odd rbx specific thing that causes tests to fail
ims = ims.select(&:source_location).reject{ |x| x.name == '__class_init__' }
@all_source_locations_by_popularity = ims.group_by { |v| Array(v.source_location).first }.
sort_by { |k, v| -v.size }