Parent

Class Index [+]

Quicksearch

Spec::Runner::ExampleGroupRunner

Public Class Methods

new(options) click to toggle source
   # File lib/spec/runner/example_group_runner.rb, line 4
4:       def initialize(options)
5:         @options = options
6:       end

Public Instance Methods

load_files(files) click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 8
 8:       def load_files(files)
 9:         $KCODE = 'u' if RUBY_VERSION.to_f < 1.9
10:         # It's important that loading files (or choosing not to) stays the
11:         # responsibility of the ExampleGroupRunner. Some implementations (like)
12:         # the one using DRb may choose *not* to load files, but instead tell
13:         # someone else to do it over the wire.
14:         files.each do |file|
15:           load file
16:         end
17:       end
run() click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 19
19:       def run
20:         prepare
21:         success = true
22:         example_groups.each do |example_group|
23:           success = success & example_group.run(@options)
24:         end
25:         finish
26:         success
27:       end

Protected Instance Methods

example_groups() click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 49
49:       def example_groups
50:         @options.example_groups
51:       end
finish() click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 36
36:       def finish
37:         reporter.end
38:         reporter.dump
39:       end
number_of_examples() click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 53
53:       def number_of_examples
54:         @options.number_of_examples
55:       end
prepare() click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 31
31:       def prepare
32:         reporter.start(number_of_examples)
33:         example_groups.reverse! if reverse
34:       end
reporter() click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 41
41:       def reporter
42:         @options.reporter
43:       end
reverse() click to toggle source
    # File lib/spec/runner/example_group_runner.rb, line 45
45:       def reverse
46:         @options.reverse
47:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.