0
0
Fork 0

Fix RSpec/ScatteredSetup cop (#24848)

This commit is contained in:
Matt Jankowski 2023-05-11 04:32:09 -04:00 committed by GitHub
parent 9cbda99941
commit a610a02d4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 23 deletions

View file

@ -101,6 +101,8 @@ RSpec.describe Auth::RegistrationsController do
before do
session[:registration_form_time] = 5.seconds.ago
request.env['devise.mapping'] = Devise.mappings[:user]
end
around do |example|
@ -109,8 +111,6 @@ RSpec.describe Auth::RegistrationsController do
end
end
before { request.env['devise.mapping'] = Devise.mappings[:user] }
context do
subject do
Setting.registrations_mode = 'open'