diff --git a/build/basics.rb b/build/basics.rb index 22b55daae6..f0b4b2b9ff 100644 --- a/build/basics.rb +++ b/build/basics.rb @@ -24,6 +24,7 @@ require 'rubygems' require 'pathname' require 'phusion_passenger' +PhusionPassenger.locate_directories require 'phusion_passenger/packaging' require 'phusion_passenger/platform_info' require 'phusion_passenger/platform_info/operating_system' diff --git a/test/integration_tests/spec_helper.rb b/test/integration_tests/spec_helper.rb index 56e7142d85..fc3ba8f2e0 100644 --- a/test/integration_tests/spec_helper.rb +++ b/test/integration_tests/spec_helper.rb @@ -15,5 +15,6 @@ $LOAD_PATH.unshift("#{source_root}/test") require 'phusion_passenger' +PhusionPassenger.locate_directories require 'support/test_helper' include TestHelper diff --git a/test/support/apache2_controller.rb b/test/support/apache2_controller.rb index b27b3764bb..a8870fd520 100644 --- a/test/support/apache2_controller.rb +++ b/test/support/apache2_controller.rb @@ -70,8 +70,8 @@ def initialize(options = nil) @vhosts = [] @extra = [] @server_root = File.expand_path('tmp.apache2') - @passenger_root = File.expand_path(File.dirname(__FILE__) + "/../..") - @mod_passenger = File.expand_path(File.dirname(__FILE__) + "/../../ext/apache2/mod_passenger.so") + @passenger_root = File.expand_path(PhusionPassenger.root) + @mod_passenger = File.expand_path(PhusionPassenger.root + "/libout/apache2/mod_passenger.so") end def set(options)