Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ldap_rake_spec.rb « gitlab « tasks « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 279234f2887cdff91b7ac04e05c8f4b691a1fde1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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