method
examples_to_run
1.1.12 -
Show latest stable
- Class:
Spec::Example::ExampleGroupMethods
examples_to_run(run_options)private
No documentation available.
# File lib/spec/example/example_group_methods.rb, line 303
def examples_to_run(run_options)
all_examples = examples(run_options)
return all_examples unless specified_examples?(run_options)
all_examples.reject do |example|
matcher = ExampleGroupMethods.matcher_class.
new(description.to_s, example.description)
!matcher.matches?(run_options.examples)
end
end