From a96be2a79ef6c9227c1299b1bbd62d4bcd132143 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Mon, 2 Dec 2024 20:33:00 +0100 Subject: [PATCH] Do not require a tenant scope for running tests --- config/initializers/acts_as_tenant.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/acts_as_tenant.rb b/config/initializers/acts_as_tenant.rb index 2117f9c..c535737 100644 --- a/config/initializers/acts_as_tenant.rb +++ b/config/initializers/acts_as_tenant.rb @@ -1,5 +1,5 @@ # Copyright (C) 2024 Manuel Bustillo ActsAsTenant.configure do |config| - config.require_tenant = true + config.require_tenant = !Rails.env.test? end \ No newline at end of file