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 6cbd4f8 commit b876514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ end

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

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

desc "Run tests with coverage"
Expand Down

0 comments on commit b876514

Please sign in to comment.