Creates a new Heckler configured to heckle all methods in the classes whose name matches filter
Dummy implementation for Windows that just fails (Heckle is not supported on Windows)
# File lib/spec/runner/heckle_runner.rb, line 33 def heckle_class_or_module(class_or_module_name) verify_constant(class_or_module_name) pattern = /^#{class_or_module_name}/ classes = [] ObjectSpace.each_object(Class) do |klass| classes << klass if klass.name =~ pattern end classes.each do |klass| klass.instance_methods(false).each do |method_name| heckle = @heckle_class.new(klass.name, method_name, Spec::Runner.options) heckle.validate end end end
# File lib/spec/runner/heckle_runner.rb, line 27 def heckle_method(class_name, method_name) verify_constant(class_name) heckle = @heckle_class.new(class_name, method_name, Spec::Runner.options) heckle.validate end
Runs all the example groups held by rspec_options once for each of the methods in the matched classes.
# File lib/spec/runner/heckle_runner.rb, line 19 def heckle_with if @filter =~ /(.*)[#\.](.*)/ heckle_method($1, $2) else heckle_class_or_module(@filter) end end
Generated with the Darkfish Rdoc Generator 2.