Skip to content
  • Jonathan Hefner's avatar
    f21e4299
    Fix `bin/rails -T` when no default task is defined · f21e4299
    Jonathan Hefner authored
    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 #50700.
    f21e4299
    Fix `bin/rails -T` when no default task is defined
    Jonathan Hefner authored
    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 #50700.
Loading