[#425] Avoid deprecated API to define rake tasks with parameters

This should avoid deprecation warnings when using ChiliProject with Rake 0.9
This commit is contained in:
Gregor Schmidt 2011-05-24 17:02:30 +02:00
parent a74517b983
commit 20a5e41538
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ END_DESC
end
desc "Send a test email to the user with the provided login name"
task :test, :login, :needs => :environment do |task, args|
task :test, [:login] => :environment do |task, args|
include Redmine::I18n
abort l(:notice_email_error, "Please include the user login to test with. Example: login=examle-login") if args[:login].blank?