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 76ef929 commit 7452d6d
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 @@ -50,7 +50,7 @@ end

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

Expand Down

0 comments on commit 7452d6d

Please sign in to comment.