lib/focus.rb in ZenTest-4.4.0 vs lib/focus.rb in ZenTest-4.4.1
- old
+ new
@@ -5,9 +5,13 @@
unwanteds.each do |unwanted|
remove_method unwanted
end
end
+ def focus_re regexp
+ focus(*public_instance_methods.grep(regexp))
+ end
+
def blur
parent = self.superclass
ObjectSpace.each_object Class do |klass|
next unless parent > klass