Call ensure_secret_token! in secret token test's before block since it would be called in an initializer.
This commit is contained in:
parent
fe46e4eb35
commit
1c462cf7d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue