summaryrefslogtreecommitdiff
path: root/spec/support/gitlab_shell_setup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/gitlab_shell_setup.rb')
-rw-r--r--spec/support/gitlab_shell_setup.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/gitlab_shell_setup.rb b/spec/support/gitlab_shell_setup.rb
index dccafb3..6982aaa 100644
--- a/spec/support/gitlab_shell_setup.rb
+++ b/spec/support/gitlab_shell_setup.rb
@@ -1,4 +1,5 @@
require 'yaml'
+require 'tempfile'
RSpec.shared_context 'gitlab shell', shared_context: :metadata do
def original_root_path
@@ -10,6 +11,8 @@ RSpec.shared_context 'gitlab shell', shared_context: :metadata do
end
def write_config(config)
+ config['log_file'] ||= Tempfile.new.path
+
File.open(config_path, 'w') do |f|
f.write(config.to_yaml)
end