From 28ac74de06878035a1fc1f8af1d9e4af528974d5 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Thu, 21 Dec 2017 16:55:20 +0100 Subject: [PATCH] Specify test directory by environment variable. --- spec/helpers.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/helpers.rb b/spec/helpers.rb index e9856dec3..05f13203d 100755 --- a/spec/helpers.rb +++ b/spec/helpers.rb @@ -5,7 +5,9 @@ require 'shellwords' require 'pg' -TEST_DIRECTORY = Pathname.getwd + "tmp_test_specs" +DEFAULT_TEST_DIR_STR = File.join(Dir.pwd, "tmp_test_specs") +TEST_DIR_STR = ENV['RUBY_PG_TEST_DIR'] || DEFAULT_TEST_DIR_STR +TEST_DIRECTORY = Pathname.new(TEST_DIR_STR) module PG::TestingHelpers