Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't leak global state outside of test example (pupilfirst#655)
It is possible, dependending on the order in which specs are executed, that the Rails.application.secrets.multitenancy setting leaks out of the context and affects other specs. With around hook, global setting is restored after the test, even if the test eventually fails.
- Loading branch information