fix for the two issues in #852

* the end date is prefilled with an incorrect formatted date
* if the radio for ends_on is not selected, but a date is entered, tracks incorrectly behaves as if ends_on was checked
This commit is contained in:
Reinier Balt 2009-04-01 13:51:36 +02:00
parent f4f2573f98
commit 239b38cb15
4 changed files with 6 additions and 5 deletions

View file

@ -81,6 +81,7 @@ class RecurringTodoTest < Test::Rails::TestCase
assert_equal true, @every_day.has_next_todo(@in_three_days)
assert_equal true, @every_day.has_next_todo(@in_four_days)
@every_day.end_date = @in_four_days
@every_day.ends_on = 'ends_on_end_date'
assert_equal false, @every_day.has_next_todo(@in_four_days)
end