79591404

Date: 2025-04-24 20:27:33
Score: 0.5
Natty:
Report link

I found a workaround in How to turn off warnings, 'ruby -w', in 'rake test'? by adding t.warning = false to my Rakefile.

# frozen_string_literal: true
require 'rake/testtask'
require 'bundler/gem_tasks'
Rake::TestTask.new do |t|
  t.libs << 'test'
+  t.warning = false
end
desc 'Run tests'
task default: :test

But that's not ideal since it disable all warnings.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: noraj