summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-17 10:56:35 -0700
committermo khan <mo.khan@gmail.com>2020-01-17 10:56:35 -0700
commit3d2b6c9c22e8bdc50ea7eb96084601a0366a4437 (patch)
tree66cba50b9bc3d0baa8cffae0210464aeece43855 /spec/support
parent45d4a0c9040e913a458312c7bee5b362713b6e78 (diff)
Add spec to test nuget package scanning in sub directories
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