fix #1027. Several tests were broken because of the more strict validations on the recurring_todo model

This commit is contained in:
Reinier Balt 2010-05-13 18:24:26 +02:00
parent 92bb54bbf5
commit cfc6d117b8
6 changed files with 25 additions and 13 deletions

View file

@ -1,4 +1,3 @@
<%
def today
Time.zone.now.beginning_of_day.to_s(:db)
@ -30,7 +29,7 @@ call_bill_gates_every_day:
description: Call Bill Gates every day
notes: ~
state: active
start_from: ~
start_from: <%= last_week %>
ends_on: no_end_date
end_date: ~
number_of_occurences: ~
@ -38,6 +37,7 @@ call_bill_gates_every_day:
show_from_delta: ~
recurring_period: daily
recurrence_selector: ~
show_always: 0
every_other1: 1
every_other2: ~
every_other3: ~
@ -62,6 +62,7 @@ call_bill_gates_every_workday:
number_of_occurences: ~
target: due_date
show_from_delta: ~
show_always: 0
recurring_period: daily
recurrence_selector: ~
every_other1: 1
@ -82,7 +83,7 @@ call_bill_gates_every_week:
description: Call Bill Gates every week
notes: ~
state: active
start_from: ~
start_from: <%= today %>
ends_on: no_end_date
end_date: ~
number_of_occurences: ~
@ -90,6 +91,7 @@ call_bill_gates_every_week:
show_from_delta: ~
recurring_period: weekly
recurrence_selector: ~
show_always: 0
every_other1: 2
every_other2: ~
every_other3: ~
@ -108,7 +110,7 @@ check_with_bill_every_last_friday_of_month:
description: Check with Bill every last friday of the month
notes: ~
state: active
start_from: ~
start_from: <%= today %>
ends_on: no_end_date
end_date: ~
number_of_occurences: ~
@ -116,6 +118,7 @@ check_with_bill_every_last_friday_of_month:
show_from_delta: 5
recurring_period: monthly
recurrence_selector: 1
show_always: 0
every_other1: 1
every_other2: 2
every_other3: 5
@ -134,12 +137,13 @@ birthday_reinier:
description: Congratulate Reinier on his birthday
notes: ~
state: active
start_from: ~
start_from: <%= today %>
ends_on: no_end_date
end_date: ~
number_of_occurences: ~
target: due_date
show_from_delta: 5
show_always: 0
recurring_period: yearly
recurrence_selector: 0
every_other1: 8