class Spec::Runner::ExampleGroupRunner
def example_groups
def example_groups @options.example_groups end
def finish
def finish reporter.end reporter.dump end
def initialize(options)
def initialize(options) @options = options end
def load_files(files)
def load_files(files) # It's important that loading files (or choosing not to) stays the # responsibility of the ExampleGroupRunner. Some implementations (like) # the one using DRb may choose *not* to load files, but instead tell # someone else to do it over the wire. files.each do |file| load file end end
def number_of_examples
def number_of_examples @options.number_of_examples end
def prepare
def prepare reporter.start(number_of_examples) example_groups.reverse! if reverse end
def reporter
def reporter @options.reporter end
def reverse
def reverse @options.reverse end
def run
def run prepare success = true example_groups.each do |example_group| success = success & example_group.run end return success ensure finish end