add test for #1068

This commit is contained in:
Reinier Balt 2011-02-04 23:04:56 +01:00
parent 72b2d4dfc9
commit 6744a22633
2 changed files with 51 additions and 3 deletions

View file

@ -110,9 +110,9 @@ class RecurringTodosControllerTest < ActionController::TestCase
@yearly.every_other1 = target_date.day
@yearly.every_other2 = target_date.month
@yearly.show_from_delta = 10
# unless @yearly.valid?
# @yearly.errors.each {|obj, error| puts error}
# end
# unless @yearly.valid?
# @yearly.errors.each {|obj, error| puts error}
# end
assert @yearly.save
# toggle twice to force generation of new todo
@ -236,4 +236,5 @@ class RecurringTodosControllerTest < ActionController::TestCase
assert_equal "due_date", recurring_todo.target
assert_equal true, recurring_todo.show_always?
end
end