mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Only run test for gem templates in Ruby < 3.1
This commit is contained in:
parent
aa3a6c9c1b
commit
110eeabf5c
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ HELP
|
||||||
end
|
end
|
||||||
|
|
||||||
task :test do
|
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|
|
counter = templates.count do |file|
|
||||||
puts "--- Running #{file}"
|
puts "--- Running #{file}"
|
||||||
Bundler.unbundled_system(Gem.ruby, "-w", file) ||
|
Bundler.unbundled_system(Gem.ruby, "-w", file) ||
|
||||||
|
|
Loading…
Reference in a new issue