Add method to invoke from the rails runner

This commit is contained in:
Jorge Manrubia
2025-11-25 13:05:06 +01:00
parent a6e5f18f40
commit 5e3c9c1d92
+5
View File
@@ -3,5 +3,10 @@ require "fizzy/saas/engine"
module Fizzy
module Saas
def self.append_test_paths
saas_test_dir = "#{Gem::Specification.find_by_name("fizzy-saas").gem_dir}/test"
ENV["DEFAULT_TEST"] = "{#{saas_test_dir},test}/**/*_test.rb"
ENV["DEFAULT_TEST_EXCLUDE"] = "{#{saas_test_dir},test}/{system,dummy,fixtures}/**/*_test.rb"
end
end
end