Skip to content

Commit

Permalink
fix task creation to end on today
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca committed Jul 23, 2010
1 parent 58fa7c1 commit 295e067
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/tasks/devchix.rake
Expand Up @@ -4,10 +4,11 @@ namespace :devchix do
args.with_default(:task => 'test task')
test_user = User.first
task = test_user.tasks.create(:name => args.task)
task.complete() #default does today
task.complete(Date.today - 1.day)
task.complete(Date.today - 2.day)
task.complete(Date.today - 3.day)
task.complete(Date.today - 2.day)
task.complete(Date.today - 1.day)
task.complete() #default does today

puts "added task #{args.task}"
end
end
Expand Down

0 comments on commit 295e067

Please sign in to comment.