Skip to content

Commit 1138cbb

Browse files
committed
Fix stats command for main
1 parent c0a2d39 commit 1138cbb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

example_app_generator/run_specs.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
run('bin/rake --backtrace spec:controllers') || abort
1111
run('bin/rake --backtrace spec:helpers') || abort
1212
run('bin/rake --backtrace spec:mailers') || abort
13-
run("bin/rake --backtrace stats") || abort
13+
stats_command =
14+
if ENV['RAILS_VERSION'].to_f < 8.1
15+
"bin/rake --backtrace stats"
16+
else
17+
"bin/rails --backtrace stats"
18+
end
19+
run(stats_command) || abort

0 commit comments

Comments
 (0)