提交 1c462cf7 编写于 作者: J 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.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册