Commit 79fa8ae9 authored by Yorick Peterse's avatar Yorick Peterse

Merge branch '6495-extract-ee-specific-files-lines-for-some-spec-lib' into 'master'

Remove EE specific lines from spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb

Closes #6495

See merge request gitlab-org/gitlab-ee!13166
parents 78646f9f 65f2ed0f
require 'spec_helper'
describe SystemCheck::App::GitUserDefaultSSHConfigCheck do
include ::EE::GeoHelpers
let(:username) { '_this_user_will_not_exist_unless_it_is_stubbed' }
let(:base_dir) { Dir.mktmpdir }
let(:home_dir) { File.join(base_dir, "/var/lib/#{username}") }
......@@ -72,7 +70,6 @@ describe SystemCheck::App::GitUserDefaultSSHConfigCheck do
end
def stub_user
allow(File).to receive(:expand_path).and_call_original
allow(File).to receive(:expand_path).with("~#{username}").and_return(home_dir)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment