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 6aa6f52 commit aeae5e7
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 @@ -42,7 +42,7 @@ end

spec = proc do |env|
env.each{|k,v| ENV[k] = v}
sh "#{FileUtils::RUBY} #{'-w' if RUBY_VERSION >= '3'} test/test.rb"
sh "#{FileUtils::RUBY} #{'-w' if RUBY_VERSION >= '3'} #{'-W:strict_unused_block' if RUBY_VERSION >= '3.4'} test/test.rb"
env.each{|k,v| ENV.delete(k)}
end

Expand Down

0 comments on commit aeae5e7

Please sign in to comment.