Restore the ability to pass arguments to bin/rails test

The app is not loaded by rails/commands if there are additional arguments to "rails test"
This commit is contained in:
Mike Dalessio
2025-11-28 14:47:00 -05:00
parent 2460dabd29
commit 027cfc02b1
+5 -1
View File
@@ -8,4 +8,8 @@ require_relative "../config/boot"
require "rails/commands"
Fizzy::Saas.append_test_paths if Fizzy.saas? && Rails.env.test?
if Fizzy.saas? && ENV["RAILS_ENV"] == "test"
# the app is not loaded by rails/commands if there are additional arguments to "rails test"
require APP_PATH
Fizzy::Saas.append_test_paths
end