We need to require this *after* or the mocks won't work

This commit is contained in:
Jorge Manrubia
2025-11-29 11:53:47 +01:00
parent 299212aae1
commit 1a74735218
2 changed files with 7 additions and 1 deletions
-1
View File
@@ -1 +0,0 @@
require "fizzy/saas/testing"
+7
View File
@@ -38,6 +38,13 @@ module Fizzy
end
end
# Load test mocks automatically in test environment
initializer "fizzy_saas.test_mocks", after: :load_config_initializers do
if Rails.env.test?
require "fizzy/saas/testing"
end
end
initializer "fizzy_saas.sentry" do
if !Rails.env.local? && ENV["SKIP_TELEMETRY"].blank?
Sentry.init do |config|