Skip to content

Commit

Permalink
Fix system specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Feb 19, 2024
1 parent fb26758 commit 9ce5fd4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/support/streaming_server_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ def stop
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

Expand Down

0 comments on commit 9ce5fd4

Please sign in to comment.