2015-12-22 16:09:35 -05:00
|
|
|
require 'rake_helper'
|
|
|
|
|
|
|
|
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
|
2017-10-10 11:25:20 -04:00
|
|
|
stub_env('force', 'yes')
|
2015-12-22 16:09:35 -05:00
|
|
|
|
|
|
|
create(:identity) # Necessary to prevent `exit 1` from the task.
|
|
|
|
|
|
|
|
run_rake_task('gitlab:ldap:rename_provider', 'ldapmain', 'ldapfoo')
|
|
|
|
end
|
|
|
|
end
|