# File lib/spec/example/example_matcher.rb, line 9
9: def matches?(specified_examples)
10: specified_examples.any? do |specified_example|
11: matches_literal_example?(specified_example) || matches_example_not_considering_modules?(specified_example)
12: end
13: end
# File lib/spec/example/example_matcher.rb, line 24
24: def example_group_regex
25: Regexp.escape(@example_group_description)
26: end
# File lib/spec/example/example_matcher.rb, line 32
32: def example_group_regex_not_considering_modules
33: Regexp.escape(@example_group_description.split('::').last)
34: end
# File lib/spec/example/example_matcher.rb, line 28
28: def example_group_with_before_all_regexp
29: Regexp.escape("#{@example_group_description} before(:all)")
30: end
# File lib/spec/example/example_matcher.rb, line 36
36: def example_regexp
37: Regexp.escape(@example_name) if @example_name
38: end
# File lib/spec/example/example_matcher.rb, line 20
20: def matches_example_not_considering_modules?(specified_example)
21: specified_example =~ /(^#{example_group_regex_not_considering_modules} #{example_regexp}$|^#{example_group_regex_not_considering_modules}$|^#{example_regexp}$)/
22: end
# File lib/spec/example/example_matcher.rb, line 16
16: def matches_literal_example?(specified_example)
17: specified_example =~ /(^#{example_group_regex} #{example_regexp}$|^#{example_group_regex}$|^#{example_group_with_before_all_regexp}$|^#{example_regexp}$)/
18: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.