diff options
| author | mo khan <mo.khan@gmail.com> | 2020-01-13 11:04:04 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-01-15 15:03:07 -0700 |
| commit | 1c73ad594a26597086b76b4b08ef045247791b5f (patch) | |
| tree | bb46ab1794065c74334a38887f07c040f0b03525 | |
| parent | a1161309d2cfe44ab1738723a6937ecd3680ea3a (diff) | |
Create tmpdir in docker reachable location for MacOS
| -rw-r--r-- | spec/spec_helper.rb | 1 | ||||
| -rw-r--r-- | spec/support/integration_test_helper.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index be7673c..115822b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,6 @@ require 'license/management' require 'json' +require 'securerandom' require 'support/integration_test_helper' RSpec.configure do |config| diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb index 485af1b..5ef00a1 100644 --- a/spec/support/integration_test_helper.rb +++ b/spec/support/integration_test_helper.rb @@ -2,7 +2,8 @@ module IntegrationTestHelper class IntegrationTestRunner attr_reader :project_path - def initialize(project_path = Dir.mktmpdir('lm')) + def initialize(project_path = File.join(Dir.pwd, 'tmp', SecureRandom.uuid)) + FileUtils.mkdir_p(project_path) @project_path = project_path end |
