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:
parent
7074302105
commit
4902c7215a
1 changed files with 2 additions and 1 deletions
|
@ -233,7 +233,8 @@ class Pry
|
||||||
|
|
||||||
ims = all_methods_for(wrapped)
|
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 }.
|
@all_source_locations_by_popularity = ims.group_by { |v| Array(v.source_location).first }.
|
||||||
sort_by { |k, v| -v.size }
|
sort_by { |k, v| -v.size }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue