diff options
| author | Can Eldem <celdem@gitlab.com> | 2020-01-23 14:01:20 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-01-23 14:01:20 +0000 |
| commit | 9365cb33e578b08ca271fc8cb00ea0798b9e9f7a (patch) | |
| tree | 6630fabb655c0b81a7a339e75f36ebcb156a8364 /spec/support | |
| parent | 9d0efd773673d47e24fc1e5afa7ed0b514849463 (diff) | |
| parent | 640be3d5b2f446434c229c3aa8cad0649a6ab779 (diff) | |
Merge branch 'dotnet-framework' into 'master'v2.4.1
Add example scan of project with a nuget `packages.config` file
See merge request gitlab-org/security-products/license-management!105
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/integration_test_helper.rb | 3 |
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 |
