This project is archived and is in readonly mode.

#6427 ✓invalid
Pawel Barcik

rake tasks missing description

Reported by Pawel Barcik | February 13th, 2011 @ 04:25 PM

According to the rails guides page:

http://guides.rubyonrails.org/testing.html

When you run :

rake --tasks --describe

or

rake --tasks

You should be able to see the db:test group of rake tasks as described in this paragraph "3.1.1 Rake Tasks for Preparing your Application for Testing"
but they dont appear.

Comments and changes to this ticket

  • Vijay Dev

    Vijay Dev February 13th, 2011 @ 05:53 PM

    • Assigned user set to “Xavier Noria”

    rake --tasks does not show the tasks which do not have descriptions provided using the desc command if I remember right.

  • Jeff Kreeftmeijer

    Jeff Kreeftmeijer February 14th, 2011 @ 07:16 PM

    • State changed from “new” to “invalid”
    • Importance changed from “” to “Low”

    Rake doesn't show tasks without descriptions by default.

    From http://rake.rubyforge.org/files/doc/rakefile_rdoc.html:

    Only tasks with descriptions will be displayed with the "-T" switch. Use "-P" (or "—prereqs") to get a list of all tasks and their prerequisites.

    So, if you want to see tasks without descriptions, use -P. I'm making this one as invalid since this is intended behavior.

    Thanks for reporting! :)

  • Vijay Dev

    Vijay Dev February 15th, 2011 @ 03:54 AM

    Good to know about the -P switch :)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages