From 4e97f1900e25cd212481f43d27bf3ebeaa2420f1 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 5 Mar 2020 14:30:21 -0700 Subject: Extract default env vars --- spec/support/integration_test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb index b937f1b..737e988 100644 --- a/spec/support/integration_test_helper.rb +++ b/spec/support/integration_test_helper.rb @@ -8,7 +8,7 @@ module IntegrationTestHelper end def add_file(name, content = nil) - full_path = Pathname.new("#{project_path}/#{name}") + full_path = Pathname.new(File.join(project_path, name)) FileUtils.mkdir_p(full_path.dirname) IO.write(full_path, block_given? ? yield : content) end -- cgit v1.2.3