为什么当我运行任务时:
my_project> rake import:twitter
任务路径:lib/task/import_twitter.rake
namespace :import do
task :twitter => :environment do
puts "importing...."
end
end
然后测试也运行?
在控制台输出中:
importing....
Loaded suite C:/Ruby/bin/rake
Started
Finished in 0.001 seconds.
0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifica
tions
0% passed
执行任务时如何不运行测试?