require'rake_helper'describe'gitlab:ldap:rename_provider rake task'doit'completes without error'doRake.application.rake_require'tasks/gitlab/ldap'stub_warn_user_is_not_gitlabENV['force']='yes'create(:identity)# Necessary to prevent `exit 1` from the task.run_rake_task('gitlab:ldap:rename_provider','ldapmain','ldapfoo')endend