summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-05 14:30:21 -0700
committermo khan <mo.khan@gmail.com>2020-03-05 14:30:21 -0700
commit4e97f1900e25cd212481f43d27bf3ebeaa2420f1 (patch)
tree57bc9aec865a5da522905be8c45b7698046829a2 /spec
parent6170963a741e63f5017d15e9f046b7ed66de3bee (diff)
Extract default env vars
Diffstat (limited to 'spec')
-rw-r--r--spec/support/integration_test_helper.rb2
1 files changed, 1 insertions, 1 deletions
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