gitlab-org--gitlab-foss/spec/tasks/gitlab/ldap_rake_spec.rb
Rémy Coutable 4774b6cfd2 Stub ENV in the LDAP task spec file
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-18 18:42:09 +02:00

13 lines
378 B
Ruby

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
stub_env('force', 'yes')
create(:identity) # Necessary to prevent `exit 1` from the task.
run_rake_task('gitlab:ldap:rename_provider', 'ldapmain', 'ldapfoo')
end
end