4

This is the only thing in my rakefile.

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/test*.rb']
  t.verbose = true
end

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

Zach
  • 885
  • 2
  • 8
  • 27

1 Answers1

7

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

s.m.
  • 7,895
  • 2
  • 38
  • 46