spec/integration/spec_helper.rb in braintree-1.0.1 vs spec/integration/spec_helper.rb in braintree-1.1.0

- old
+ new

@@ -8,10 +8,10 @@ CLIENT_LIB_ROOT = File.expand_path(File.dirname(__FILE__) + "/../..") GATEWAY_ROOT = File.expand_path("#{CLIENT_LIB_ROOT}/../gateway") GATEWAY_SERVER_PORT = 3000 GATEWAY_PID_FILE = "/tmp/gateway_server_#{Braintree::Configuration.port}.pid" SPHINX_PID_FILE = "#{GATEWAY_ROOT}/log/searchd.integration.pid" - + gateway_already_started = File.exist?(GATEWAY_PID_FILE) sphinx_already_started = File.exist?(SPHINX_PID_FILE) config.before(:suite) do Dir.chdir(CLIENT_LIB_ROOT) do system "rake start_gateway" or raise "rake start_gateway failed" unless gateway_already_started