Search code examples
rubyrake

How to add a Rake task to the default Rake task?


Somehow Rspec and Cucumber are making it into my default rake task (which is fine because I want them there). But I have tried adding additional tasks to the default task and it has no effect.

What is the proper way to add tasks to the default rake task?


Solution

  • Typically your Rakefile will have something like this:

    task :default => [:spec]
    

    You just need to add more tasks into this list.