爲什麼當我運行任務:運行rake任務
my_project> rake import:twitter
Task.path:LIB /任務/ 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
如何在不運行測試,在執行任務的時候?
你的Rakefile和rask文件任務如何? – shingara 2010-10-06 06:16:36