I would like to write rake tasks to customize tests. For example, to run unit tests, I created a file with the following code and saved it as lib/tasks/test.rake:
task :do_unit_tests do
cd #{Rails.root}
rake test:units
end
Running rake do_unit_tests
throws an error: can't convert Hash into String
.
Working in Rails 3.0.7 and using built-in unit test framework.
Thanks.