features/support/aruba.rb in revenc-0.1.3 vs features/support/aruba.rb in revenc-0.2.1
- old
+ new
@@ -1,21 +1,21 @@
-require 'aruba'
+require 'aruba/api'
require 'fileutils'
-APP_BIN_PATH = File.join(ENV['PWD'], 'bin', 'revenc')
+APP_BIN_PATH = File.join(FileUtils.pwd, 'bin', 'revenc')
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(/^revenc/, "#{APP_BIN_PATH} --verbose")
+ cmd = cmd.gsub(/^revenc/, "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