summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorJustin DiPierro <dipierroj@gmail.com>2016-10-06 22:40:04 -0400
committerJustin DiPierro <dipierroj@gmail.com>2016-10-06 22:40:04 -0400
commit1c462cf7d6d61aebac9b909102f0e794cc9e409a (patch)
tree22abf5c6f1780d1a51f72ad606f333942aa14cc9 /spec/lib
parentfe46e4eb35dd6728a8a5ebcee9cc05a4613effbf (diff)
downloadgitlab-ce-1c462cf7d6d61aebac9b909102f0e794cc9e409a.tar.gz
Call ensure_secret_token! in secret token test's before block since it would be called in an initializer.
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/backend/shell_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/gitlab/backend/shell_spec.rb b/spec/lib/gitlab/backend/shell_spec.rb
index c9c7ef8f479..f826d0d1b04 100644
--- a/spec/lib/gitlab/backend/shell_spec.rb
+++ b/spec/lib/gitlab/backend/shell_spec.rb
@@ -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