From 3d2b6c9c22e8bdc50ea7eb96084601a0366a4437 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 17 Jan 2020 10:56:35 -0700 Subject: Add spec to test nuget package scanning in sub directories --- spec/support/integration_test_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/support') 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 -- cgit v1.2.3