Take the 2-minute tour ×

This is the only thing in my rakefile.

Rake::TestTask.new do |t|
  t.libs << "test"
  t.verbose = true

When I run rake the output I get is

uninitialized constant Rake::TestTask

What am I doing wrong? I want my rake file to run all unit tests that I specify. Any input would be helpful. Thanks

share|improve this question
Do you have require rake/testtask at the top of your rakefile? –  Zajn Nov 15 '12 at 21:41

1 Answer 1

up vote 2 down vote accepted

What happens if you require 'rake/testtask' at the top of the file?

share|improve this answer
Thanks, that's it. –  Zach Nov 15 '12 at 21:44

Your Answer


