Parent

Class Index [+]

Quicksearch

Spec::Example::ExampleGroupHierarchy

Public Class Methods

new(example_group_class) click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 4
 4:       def initialize(example_group_class)
 5:         push example_group_class
 6:         if example_group_class.respond_to?(:superclass) && example_group_class.superclass.respond_to?(:example_group_hierarchy)
 7:           unshift example_group_class.superclass.example_group_hierarchy
 8:           flatten!
 9:         end
10:       end

Public Instance Methods

after_all_parts() click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 40
40:       def after_all_parts
41:         @after_all_parts ||= reverse.collect {|klass| klass.after_all_parts}.flatten
42:       end
after_each_parts() click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 36
36:       def after_each_parts
37:         @after_each_parts ||= reverse.collect {|klass| klass.after_each_parts}.flatten
38:       end
before_all_parts() click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 28
28:       def before_all_parts
29:         @before_all_parts ||= collect {|klass| klass.before_all_parts}.flatten
30:       end
before_each_parts() click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 32
32:       def before_each_parts
33:         @before_each_parts ||= collect {|klass| klass.before_each_parts}.flatten
34:       end
nested_description_from(example_group) click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 48
48:       def nested_description_from(example_group)
49:         example_group.description_args.join
50:       end
nested_descriptions() click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 44
44:       def nested_descriptions
45:         @nested_descriptions ||= collect {|eg| nested_description_from(eg) == "" ? nil : nested_description_from(eg) }.compact
46:       end
run_after_all(example) click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 24
24:       def run_after_all(example)
25:         example.eval_each_fail_slow(after_all_parts)
26:       end
run_after_each(example) click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 20
20:       def run_after_each(example)
21:         example.eval_each_fail_slow(after_each_parts)
22:       end
run_before_all(example) click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 12
12:       def run_before_all(example)
13:         example.eval_each_fail_fast(before_all_parts)
14:       end
run_before_each(example) click to toggle source
    # File lib/spec/example/example_group_hierarchy.rb, line 16
16:       def run_before_each(example)
17:         example.eval_each_fail_fast(before_each_parts)
18:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.