The task extension was not working

This commit is contained in:
Jorge Manrubia
2025-11-23 06:58:17 +01:00
parent 3eaa2ed774
commit 406658967f
+6 -7
View File
@@ -1,16 +1,15 @@
require "rake/testtask"
namespace :test do
task :prepare_saas => :environment do
$LOAD_PATH.unshift Fizzy::Saas::Engine.root.join("test").to_s
require "test_helper"
end
desc "Run tests for fizzy-saas gem"
Rake::TestTask.new(:saas) do |t|
Rake::TestTask.new(:saas => :prepare_saas) do |t|
t.libs << "test"
t.test_files = FileList[Fizzy::Saas::Engine.root.join("test/**/*_test.rb")]
t.warning = false
end
end
task "test:saas" => :environment do
$LOAD_PATH.unshift Fizzy::Saas::Engine.root.join("test").to_s
require "test_helper"
end