Remove unneeded settings cleanup from specs (#28425)
This commit is contained in:
parent
c7c727994a
commit
6fed0fcbaa
15 changed files with 8 additions and 189 deletions
|
@ -28,13 +28,8 @@ RSpec.describe AppSignUpService, type: :service do
|
|||
end
|
||||
|
||||
context 'when registrations are closed' do
|
||||
around do |example|
|
||||
tmp = Setting.registrations_mode
|
||||
before do
|
||||
Setting.registrations_mode = 'none'
|
||||
|
||||
example.run
|
||||
|
||||
Setting.registrations_mode = tmp
|
||||
end
|
||||
|
||||
it 'raises an error', :aggregate_failures do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue