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 346b91f commit 1ed346e
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 @@ -2,7 +2,7 @@ task :default => [:test]

desc "Run tests"
task :test do
sh "#{FileUtils::RUBY} #{"-w" if RUBY_VERSION >= '3'} test/all.rb"
sh "#{FileUtils::RUBY} #{"-w" if RUBY_VERSION >= '3'} #{'-W:strict_unused_block' if RUBY_VERSION >= '3.4'} test/all.rb"
end

desc "Run tests with coverage"
Expand Down

0 comments on commit 1ed346e

Please sign in to comment.