lib/cukeforker/worker.rb in cukeforker-0.0.8 vs lib/cukeforker/worker.rb in cukeforker-0.0.9
- old
+ new
@@ -67,23 +67,23 @@
def stderr
File.join out, "#{basename}.stderr"
end
+ def basename
+ @basename ||= feature.gsub(/\W/, '_')
+ end
+
private
def execute_cucumber
FileUtils.mkdir_p(out) unless File.exist? out
$stdout.reopen stdout
$stderr.reopen stderr
failed = Cucumber::Cli::Main.execute args
exit failed ? 1 : 0
- end
-
- def basename
- @basename ||= feature.gsub(/\W/, '_')
end
end # Worker
end # CukeForker