What am I doing wrong with my rakefile?

This is the only one 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 the unit tests that I specify. Any input would be helpful. thanks

+4
source share
1 answer

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

+7
source

Source: https://habr.com/ru/post/1446337/


All Articles