diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_proxy_pass.rb (renamed from test/test_extras_proxy_pass.rb) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_extras_proxy_pass.rb b/test/test_proxy_pass.rb index 5bbce73..530b53c 100644 --- a/test/test_extras_proxy_pass.rb +++ b/test/test_proxy_pass.rb @@ -45,12 +45,12 @@ class TestExtrasProxyPass < Testcase @srv.autoclose = @srv2.autoclose = false ENV["YAHNS_FD"] = "#{@srv.fileno},#{@srv2.fileno}" $LOAD_PATH.unshift "#{Dir.pwd}/extras" - require 'proxy_pass' + require 'yahns/proxy_pass' cfg.instance_eval do - app(:rack, ProxyPass.new("unix:#{unix_path}:/$fullpath")) do + app(:rack, Yahns::ProxyPass.new("unix:#{unix_path}:/$fullpath")) do listen "#{host}:#{port}" end - app(:rack, ProxyPass.new("unix:#{unix_path}:/foo$fullpath")) do + app(:rack, Yahns::ProxyPass.new("unix:#{unix_path}:/foo$fullpath")) do listen "#{host2}:#{port2}" end stderr_path err.path @@ -108,10 +108,10 @@ class TestExtrasProxyPass < Testcase host2, port2 = @srv2.addr[3], @srv2.addr[1] pid = mkserver(cfg) do $LOAD_PATH.unshift "#{Dir.pwd}/extras" - require 'proxy_pass' + require 'yahns/proxy_pass' @srv2.close cfg.instance_eval do - app(:rack, ProxyPass.new("http://#{host2}:#{port2}/")) do + app(:rack, Yahns::ProxyPass.new("http://#{host2}:#{port2}/")) do listen "#{host}:#{port}" end stderr_path err.path |