Refactor test task

This commit is contained in:
Hakan Ensari 2024-11-21 13:16:27 +01:00
parent 0b95a177c2
commit 0a88f09c73
No known key found for this signature in database

View File

@ -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"]