Files
fizzy/bin/rails
T
Mike Dalessio 027cfc02b1 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"
2025-11-28 14:47:00 -05:00

16 lines
394 B
Ruby
Executable File

#!/usr/bin/env ruby
APP_PATH = File.expand_path("../config/application", __dir__)
require_relative "../lib/fizzy"
Fizzy.configure_bundle
require_relative "../config/boot"
require "rails/commands"
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