summaryrefslogtreecommitdiff
path: root/test/soap/calc/test_calc_cgi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/soap/calc/test_calc_cgi.rb')
-rw-r--r--test/soap/calc/test_calc_cgi.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/soap/calc/test_calc_cgi.rb b/test/soap/calc/test_calc_cgi.rb
index 6d1204d48c..14b0097bb6 100644
--- a/test/soap/calc/test_calc_cgi.rb
+++ b/test/soap/calc/test_calc_cgi.rb
@@ -2,6 +2,7 @@ require 'test/unit'
require 'soap/rpc/driver'
require 'logger'
require 'webrick'
+require 'rbconfig'
module SOAP
@@ -9,6 +10,8 @@ module Calc
class TestCalcCGI < Test::Unit::TestCase
+ # This test shuld be run after installing ruby.
+ RUBYBIN = File.join(Config::CONFIG["bindir"], Config::CONFIG["ruby_install_name"])
def setup
logger = Logger.new(STDERR)
logger.level = Logger::Severity::FATAL
@@ -18,7 +21,8 @@ class TestCalcCGI < Test::Unit::TestCase
:Port => 8808,
:AccessLog => [],
:DocumentRoot => File.dirname(File.expand_path(__FILE__)),
- :CGIPathEnv => ENV['PATH']
+ :CGIPathEnv => ENV['PATH'],
+ :CGIInterpreter => RUBYBIN
)
@t = Thread.new {
@server.start