From 4902c7215a948c2b2f3289c6414e8f72f022dd38 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 5 Jul 2012 21:17:25 -0700 Subject: [PATCH] Remove non-determinancy caused by rbx oddity --- lib/pry/wrapped_module.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pry/wrapped_module.rb b/lib/pry/wrapped_module.rb index 4fe64b3d..2ca0ae8b 100644 --- a/lib/pry/wrapped_module.rb +++ b/lib/pry/wrapped_module.rb @@ -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 }