mirror of https://github.com/rails/rails
Only run test for gem templates in Ruby < 3.1
This commit is contained in:
parent
aa3a6c9c1b
commit
110eeabf5c
|
@ -75,7 +75,11 @@ HELP
|
|||
end
|
||||
|
||||
task :test do
|
||||
templates = Dir.glob("bug_report_templates/*.rb")
|
||||
templates = if RUBY_VERSION < "3.1.0"
|
||||
Dir.glob("bug_report_templates/*.rb")
|
||||
else
|
||||
Dir.glob("bug_report_templates/*_main.rb")
|
||||
end
|
||||
counter = templates.count do |file|
|
||||
puts "--- Running #{file}"
|
||||
Bundler.unbundled_system(Gem.ruby, "-w", file) ||
|
||||
|
|
Loading…
Reference in New Issue