Skip to content

Commit

Permalink
Use -W:strict_unused_block when running tests on Ruby 3.4+
Browse files Browse the repository at this point in the history
No changes needed to the code.
  • Loading branch information
jeremyevans committed Dec 18, 2024
1 parent 077eff7 commit a51e33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end

desc "Run specs"
task :spec do
sh %{#{FileUtils::RUBY} #{"-w" if RUBY_VERSION >= '3'} spec/simple_mailer.rb}
sh %{#{FileUtils::RUBY} #{"-w" if RUBY_VERSION >= '3'} #{'-W:strict_unused_block' if RUBY_VERSION >= '3.4'} spec/simple_mailer.rb}
end

task :default => :spec
Expand Down

0 comments on commit a51e33d

Please sign in to comment.