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:
@@ -8,4 +8,8 @@ require_relative "../config/boot"
|
|||||||
|
|
||||||
require "rails/commands"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user