From 0a88f09c736507af7a7e7df01755165a349e9ca9 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Thu, 21 Nov 2024 13:16:27 +0100 Subject: [PATCH] Refactor test task --- lib/tasks/test.rake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake index fa9c9a3..0c8c642 100644 --- a/lib/tasks/test.rake +++ b/lib/tasks/test.rake @@ -7,12 +7,12 @@ rescue LoadError return end -Rake::TestTask.new(test: :environment) do |t| - t.libs.push("lib") +Rake::TestTask.new(spec: :environment) do |t| + t.libs << "lib" + t.libs << "test" t.test_files = FileList["spec/**/*_spec.rb"] - t.ruby_opts += ["-W0"] end RuboCop::RakeTask.new -task default: ["rubocop", "db:test:prepare", "test"] +task default: ["rubocop", "db:test:prepare", "spec"]