Stub ENV in the LDAP task spec file

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-10-10 17:25:20 +02:00
parent 91553ae833
commit 4774b6cfd2
1 changed files with 1 additions and 1 deletions

View File

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