Flowdock
method

examples_to_run

Importance_0
examples_to_run(run_options) private

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/example/example_group_methods.rb, line 238
      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
Register or log in to add new notes.