summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/integration_test_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb
index 5ef00a1..e05ef43 100644
--- a/spec/support/integration_test_helper.rb
+++ b/spec/support/integration_test_helper.rb
@@ -8,7 +8,8 @@ module IntegrationTestHelper
end
def add_file(name, content = nil)
- full_path = "#{project_path}/#{name}"
+ full_path = Pathname.new("#{project_path}/#{name}")
+ FileUtils.mkdir_p(full_path.dirname)
IO.write(full_path, block_given? ? yield : content)
end