Permalink
Browse files

Remove non-determinancy caused by rbx oddity

  • Loading branch information...
ConradIrwin committed Jul 6, 2012
1 parent 7074302 commit 4902c7215a948c2b2f3289c6414e8f72f022dd38
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/pry/wrapped_module.rb
@@ -233,7 +233,8 @@ def all_source_locations_by_popularity
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 }

0 comments on commit 4902c72

Please sign in to comment.