Module: MultiTenantSupport::Test::Integration
- Defined in:
- lib/multi_tenant_support/test/integration.rb
Instance Method Summary collapse
Instance Method Details
#follow_redirect(**args) ⇒ Object
13 14 15 16 17 |
# File 'lib/multi_tenant_support/test/integration.rb', line 13 def follow_redirect(**args) keep_context_tenant_unchange do super(**args) end end |
#keep_context_tenant_unchange ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/multi_tenant_support/test/integration.rb', line 19 def keep_context_tenant_unchange _current_tenant = MultiTenantSupport::Current.tenant_account MultiTenantSupport::Current.tenant_account = nil # Simulate real circumstance yield ensure MultiTenantSupport::Current.tenant_account = _current_tenant end |