debian-mirror-gitlab/spec/tasks/gitlab/ldap_rake_spec.rb
2020-08-09 17:44:08 +05:30

15 lines
415 B
Ruby

# frozen_string_literal: true
require 'rake_helper'
RSpec.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