Call ensure_secret_token! in secret token test's before block since it would be called in an initializer.

This commit is contained in:
Justin DiPierro 2016-10-06 22:40:04 -04:00
parent fe46e4eb35
commit 1c462cf7d6
1 changed files with 1 additions and 0 deletions

View File

@ -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