From 18096b5440e0818605add32538751c6be38e8343 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Mon, 14 Oct 2019 16:00:48 +0100 Subject: Remove dead Ruby code --- spec/support/gitlab_shell_setup.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'spec/support/gitlab_shell_setup.rb') diff --git a/spec/support/gitlab_shell_setup.rb b/spec/support/gitlab_shell_setup.rb index eddd2d1..07ad56f 100644 --- a/spec/support/gitlab_shell_setup.rb +++ b/spec/support/gitlab_shell_setup.rb @@ -45,9 +45,8 @@ RSpec.shared_context 'gitlab shell', shared_context: :metadata do raise "Couldn't start stub GitlabNet server" unless @server.status == :Running system(original_root_path, 'bin/compile') - copy_dirs = ['bin', 'lib'] - FileUtils.rm_rf(copy_dirs.map { |d| File.join(tmp_root_path, d) }) - FileUtils.cp_r(copy_dirs, tmp_root_path) + FileUtils.rm_rf(File.join(tmp_root_path, 'bin')) + FileUtils.cp_r('bin', tmp_root_path) end after(:all) do -- cgit v1.2.1