Commit d55822ac authored by Stan Hu's avatar Stan Hu

Merge branch '328806-improve-clarity-in-the-users-buildservice-3' into 'master'

Optimize Users::BuildService spec [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!61734
parents 20ec7721 9af4215e
......@@ -34,11 +34,13 @@ RSpec.describe Users::BuildService do
end
context 'with an admin user' do
let!(:admin_user) { create(:admin) }
let_it_be(:admin_user) { create(:admin) }
let(:service) { described_class.new(admin_user, ActionController::Parameters.new(params).permit!) }
context 'allowed params' do
let(:provider) { create(:saml_provider) }
let_it_be(:provider) { create(:saml_provider) }
let(:identity_params) { { extern_uid: 'uid', provider: 'group_saml', saml_provider_id: provider.id } }
before do
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment