Skip to content

Commit

Permalink
Specify test directory by environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
junaruga committed Dec 21, 2017
1 parent b42a9c7 commit 28ac74d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 28ac74d

Please sign in to comment.