lib/runner.rb in guillaumegentil-rspactor-0.2.2 vs lib/runner.rb in guillaumegentil-rspactor-0.2.3
- old
+ new
@@ -1,10 +1,11 @@
class Runner
- def self.load
+ def self.load(drb = false)
@inspector = Inspector.new
@interactor = Interactor.new
+ @drb = drb
puts "** RSpactor is now watching at '#{Dir.pwd}'"
if initial_spec_run_abort
@interactor.start_termination_handler
@@ -48,12 +49,12 @@
spec_runner_bin = script_runner(locations.first)
locations = locations.join(" ")
cmd = "RAILS_ENV=test; "
cmd << "#{spec_runner_bin} "
cmd << "#{locations} #{spec_opts(base_spec_root)} "
- # cmd << "--drb "
+ cmd << "--drb " if @drb
cmd << "-r #{File.dirname(__FILE__)}/../lib/resulting.rb -f RSpactorFormatter:STDOUT"
- # puts cmd
+ puts cmd
system(cmd)
end
end
def self.extract_spec_root(file)
\ No newline at end of file