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
Results in one warning in the active_model code when running the
active_record specs, but I assume that will be fixed.
  • Loading branch information
jeremyevans committed Dec 18, 2024
1 parent 7b80900 commit f9d2108
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ all_specs << :spec_ar unless RUBY_ENGINE == 'jruby'
desc "Run Sequel and ActiveRecord specs"
task :default=>all_specs

test_flags = '-w' if RUBY_VERSION >= '3'
test_flags = String.new
test_flags << '-w ' if RUBY_VERSION >= '3'
test_flags << '-W:strict_unused_block ' if RUBY_VERSION >= '3.4'

desc "Run Sequel specs"
task :spec_sequel do
Expand Down

0 comments on commit f9d2108

Please sign in to comment.