Fix RSpec/ScatteredSetup cop (#24848)
This commit is contained in:
parent
9cbda99941
commit
a610a02d4f
6 changed files with 9 additions and 23 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue