Commit 1c462cf7 authored by Justin DiPierro's avatar Justin DiPierro

Call ensure_secret_token! in secret token test's before block since it would...

Call ensure_secret_token! in secret token test's before block since it would be called in an initializer.
parent fe46e4eb
......@@ -30,6 +30,7 @@ describe Gitlab::Shell, lib: true do
allow(Gitlab.config.gitlab_shell).to receive(:secret_file).and_return(secret_file)
allow(Gitlab.config.gitlab_shell).to receive(:path).and_return('tmp/tests/shell-secret-test')
FileUtils.mkdir('tmp/tests/shell-secret-test')
Gitlab::Shell.ensure_secret_token!
end
after do
......
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