Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin DiPierro <dipierroj@gmail.com>2016-10-07 05:40:04 +0300
committerJustin DiPierro <dipierroj@gmail.com>2016-10-07 05:40:04 +0300
commit1c462cf7d6d61aebac9b909102f0e794cc9e409a (patch)
tree22abf5c6f1780d1a51f72ad606f333942aa14cc9
parentfe46e4eb35dd6728a8a5ebcee9cc05a4613effbf (diff)
Call ensure_secret_token! in secret token test's before block since it would be called in an initializer.
-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