Skip to content

Commit f9d2108

Browse files
committed
Use -W:strict_unused_block when running tests on Ruby 3.4+
Results in one warning in the active_model code when running the active_record specs, but I assume that will be fixed.
1 parent 7b80900 commit f9d2108

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ all_specs << :spec_ar unless RUBY_ENGINE == 'jruby'
2626
desc "Run Sequel and ActiveRecord specs"
2727
task :default=>all_specs
2828

29-
test_flags = '-w' if RUBY_VERSION >= '3'
29+
test_flags = String.new
30+
test_flags << '-w ' if RUBY_VERSION >= '3'
31+
test_flags << '-W:strict_unused_block ' if RUBY_VERSION >= '3.4'
3032

3133
desc "Run Sequel specs"
3234
task :spec_sequel do

0 commit comments

Comments
 (0)