summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-10-10 17:25:20 +0200
committerRémy Coutable <remy@rymai.me>2017-10-18 18:42:09 +0200
commit4774b6cfd2095974df4267e4e4871b38b274a956 (patch)
tree8bf740af7246146ab7161cff7fb5359e604c6d68 /spec/tasks
parent91553ae83363c2a862d4e606599a613b6fa7e224 (diff)
downloadgitlab-ce-4774b6cfd2095974df4267e4e4871b38b274a956.tar.gz
Stub ENV in the LDAP task spec file
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/ldap_rake_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/ldap_rake_spec.rb b/spec/tasks/gitlab/ldap_rake_spec.rb
index 12d442b9820..279234f2887 100644
--- a/spec/tasks/gitlab/ldap_rake_spec.rb
+++ b/spec/tasks/gitlab/ldap_rake_spec.rb
@@ -4,7 +4,7 @@ describe 'gitlab:ldap:rename_provider rake task' do
it 'completes without error' do
Rake.application.rake_require 'tasks/gitlab/ldap'
stub_warn_user_is_not_gitlab
- ENV['force'] = 'yes'
+ stub_env('force', 'yes')
create(:identity) # Necessary to prevent `exit 1` from the task.