Change registrations to be disabled by default for new servers (#29353)
This commit is contained in:
parent
4fd22acb4a
commit
328a9b8157
7 changed files with 28 additions and 17 deletions
|
@ -152,6 +152,13 @@ RSpec.configure do |config|
|
|||
self.use_transactional_tests = false
|
||||
|
||||
DatabaseCleaner.cleaning do
|
||||
# NOTE: we switched registrations mode to closed by default, but the specs
|
||||
# very heavily rely on having it enabled by default, as it relies on users
|
||||
# being approved by default except in select cases where explicitly testing
|
||||
# other registration modes
|
||||
# Also needs to be set per-example here because of the database cleaner.
|
||||
Setting.registrations_mode = 'open'
|
||||
|
||||
example.run
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue