module Spec::Example::ExampleGroupMethods

def examples_to_run(run_options)

def examples_to_run(run_options)
  return example_proxies unless examples_were_specified?(run_options)
  if run_options.line_number_requested?
    if location =~ /:#{run_options.example_line}$/
      example_proxies
    else
      example_proxies.select {|proxy| proxy.location =~ /:#{run_options.example_line}$/}
    end
  else
    example_proxies.reject do |proxy|
      matcher = ExampleGroupMethods.matcher_class.
        new(description.to_s, proxy.description)
      !matcher.matches?(run_options.examples)
    end
  end
end