Commit 9af4215e authored by Doug Stull's avatar Doug Stull

Optimize users build service spec

- before refactoring the main class, want to do this part first.
parent b38c7efe
......@@ -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