lib/gurke/runner.rb in gurke-2.3.0 vs lib/gurke/runner.rb in gurke-2.4.0
- old
+ new
@@ -26,12 +26,12 @@
features = builder.load files.map{|file, _| file }
features.filter(options, files).run self, reporter
end
- def hook(scope, world, &block)
- config.hooks[scope].run world, &block
+ def hook(scope, world, context, &block)
+ config.hooks[scope].run world, context, &block
end
def with_filtered_backtrace
yield
rescue => e
@@ -42,11 +42,11 @@
raise
end
class LocalRunner < Runner
def run(*)
- hook :system, nil do
+ hook :system, nil, nil do
super
end
end
end
@@ -54,10 +54,10 @@
URI = 'druby://localhost:8789'
def run(files)
require 'drb'
- hook :system, nil do
+ hook :system, nil, nil do
DRb.start_service URI, self
$stdout.puts 'DRb Server running...'
begin
DRb.thread.join