features/support/aruba.rb in oct-0.2.0 vs features/support/aruba.rb in oct-0.3.1

- old
+ new

@@ -1,21 +1,21 @@ -require 'aruba' +require 'aruba/api' require 'fileutils' -APP_BIN_PATH = File.join(ENV['PWD'], 'bin', 'oct') +APP_BIN_PATH = File.join(FileUtils.pwd, 'bin', 'oct') module Aruba module Api - alias_method :old_run, :run + alias_method :old_run_simple, :run_simple - # override aruba - def run(cmd, fail_on_error=true) - + # override aruba + def run_simple(cmd, fail_on_error=true) + # run development version in verbose mode - cmd = cmd.gsub(/^oct/, "#{APP_BIN_PATH} --verbose") + cmd = cmd.gsub(/^oct/, "ruby -S #{APP_BIN_PATH} --verbose") - # run original aruba 'run' - old_run(cmd, fail_on_error) + # run original aruba 'run' + old_run_simple(cmd, fail_on_error) end end end