test/duplicate_names_test.rb in ruby-prof-0.8.2 vs test/duplicate_names_test.rb in ruby-prof-0.9.0
- old
+ new
@@ -17,13 +17,13 @@
DuplicateNames.class_eval {remove_const :Foo}
eval str
Foo::Bar.new.foo
end
-
+
# There should be 3 foo methods
methods = result.threads.values.first.sort.reverse
-
+
methods = methods.select do |method|
method.full_name == 'DuplicateNames::Foo::Bar#foo'
end
assert_equal(3, methods.length)