Slide 67
Slide 67 text
Consumer’s main loop
def main
loop do
_, spec_file = @tuple_space.take [:spec_file, String]
load File.expand_path(spec_file)
begin
@configuration.run_hook(:before, :suite)
@world.example_groups.ordered.map {|g|
g.run(reporter)
}.all? ? 0 : @configuration.failure_exit_code
ensure
@configuration.run_hook(:after, :suite)
@world.clear
end
end
end
Sunday, September 16, 12