ErwinM / acts_as_tenant

Easy multi-tenancy for Rails in a shared database setup.
MIT License
1.53k stars 262 forks source link

Set test tenant to nil in ActsAsTenant.without_tenant block #290

Closed hakimaryan closed 1 year ago

hakimaryan commented 1 year ago

When without_tenant was being used, it was staying connected to test_tenant if test_tenant was set. These changes reset the test_tenant in the same way that current_tenant is handled.

excid3 commented 1 year ago

Thanks @hakimaryan. We should add a test or two for this.

nadrooJ commented 1 year ago

Test cases now added