Skip to content

Commit 7bc65a4

Browse files
committed
Warning[:performance] is new in Ruby 3.3. Thanks, CI!
1 parent 81499f2 commit 7bc65a4

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
@@ -7,5 +7,7 @@ require 'minitest/test_task'
77
# * test:slow : run tests and reports the slowest 25
88
Minitest::TestTask.create do |t|
99
t.extra_args << '-Werror' # Raise exceptions for warnings: https://github.com/minitest/minitest/commit/f0f17b9
10-
t.test_prelude = 'Warning[:performance] = true' # … including `performance` warnings which are off even with `-w`
10+
if RUBY_VERSION > '3.3'
11+
t.test_prelude = 'Warning[:performance] = true' # … including `performance` warnings which are off even with `-w`
12+
end
1113
end

0 commit comments

Comments
 (0)