forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
bin/rails -T
when no default task is defined
When Rake parses an argument string with no tasks, it sets the top-level task as "default". Prior to this commit, if no default task was defined (for example, if an app was generated with `--skip-test` and didn't define its own default task), `Rails::Command::RakeCommand` would raise `UnrecognizedCommandError`, preventing Rake from displaying the task list. This commit changes `Rails::Command::RakeCommand` to let Rake handle the "default" task. Fixes rails#50700.
- Loading branch information
1 parent
a18aa26
commit f21e429
Showing
3 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters