2007-03-30 04:36:52 +00:00
|
|
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
|
|
|
<%
|
|
|
|
|
|
|
|
def today
|
2008-06-17 01:13:25 -04:00
|
|
|
Time.zone.now.beginning_of_day.to_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def next_week
|
2008-06-17 01:13:25 -04:00
|
|
|
1.week.from_now.beginning_of_day.to_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def last_week
|
2008-06-17 01:13:25 -04:00
|
|
|
1.week.ago.beginning_of_day.to_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
2007-10-16 07:16:22 +00:00
|
|
|
def two_weeks_ago
|
2008-06-17 01:13:25 -04:00
|
|
|
2.weeks.ago.beginning_of_day.to_s(:db)
|
2007-10-16 07:16:22 +00:00
|
|
|
end
|
|
|
|
|
2007-03-30 04:36:52 +00:00
|
|
|
def two_weeks_hence
|
2008-06-17 01:13:25 -04:00
|
|
|
2.weeks.from_now.beginning_of_day.to_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_bill:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 1
|
|
|
|
context_id: 1
|
|
|
|
project_id: 2
|
|
|
|
description: Call Bill Gates to find out how much he makes per day
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= last_week %>
|
|
|
|
due: <%= two_weeks_hence %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_dino_ext:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 2
|
|
|
|
context_id: 2
|
|
|
|
project_id: 3
|
|
|
|
description: Call dinosaur exterminator
|
|
|
|
notes: Ask him if I need to hire a skip for the corpses.
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= two_weeks_hence %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_milk:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 3
|
|
|
|
context_id: 4
|
|
|
|
project_id: ~
|
|
|
|
description: Buy milk
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: <%= today %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_bread:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 4
|
|
|
|
context_id: 4
|
|
|
|
project_id: ~
|
|
|
|
description: Buy bread
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: <%= today %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
construct_dilation_device:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 5
|
|
|
|
context_id: 5
|
|
|
|
project_id: 1
|
|
|
|
description: Construct time dilation device
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
phone_grandfather:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 6
|
|
|
|
context_id: 2
|
|
|
|
project_id: 1
|
|
|
|
description: Phone Grandfather to ask about the paradox
|
|
|
|
notes: Added some _notes_.
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= last_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2008-11-28 16:39:50 +01:00
|
|
|
book:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 7
|
|
|
|
context_id: 6
|
|
|
|
project_id: 3
|
|
|
|
description: Get a book out of the library
|
|
|
|
notes: 'Dinosaurs''R'
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
upgrade_rails:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 8
|
|
|
|
context_id: 4
|
|
|
|
project_id: ~
|
|
|
|
description: Upgrade to Rails 0.9.1
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= today %>
|
|
|
|
completed_at: <%= today %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
due_today:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 9
|
|
|
|
context_id: 1
|
|
|
|
project_id: ~
|
|
|
|
description: This should be due today
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= today %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
foo:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 10
|
|
|
|
context_id: 1
|
|
|
|
project_id: ~
|
|
|
|
description: foo
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
2007-10-16 07:16:22 +00:00
|
|
|
created_at: <%= two_weeks_ago %>
|
2007-03-30 04:36:52 +00:00
|
|
|
due: <%= two_weeks_hence %>
|
|
|
|
completed_at: <%= last_week %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_shares:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 11
|
|
|
|
context_id: 1
|
|
|
|
project_id: 2
|
|
|
|
description: Buy shares
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= next_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_stego_bait:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 12
|
|
|
|
context_id: 1
|
|
|
|
project_id: 3
|
|
|
|
description: Buy stegosaurus bait
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= next_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
new_action_in_context:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 13
|
|
|
|
context_id: 1
|
|
|
|
project_id: 3
|
|
|
|
description: New action in context
|
|
|
|
notes: Some notes
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= next_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_stock_broker:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 14
|
|
|
|
context_id: 2
|
|
|
|
project_id: 2
|
|
|
|
description: Call stock broker
|
|
|
|
notes: 'tel: 12345'
|
|
|
|
state: active
|
|
|
|
created_at: <%= last_week %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
select_delorean_model:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 15
|
|
|
|
context_id: 6
|
|
|
|
project_id: 1
|
|
|
|
description: Select Delorean model
|
|
|
|
notes: ~
|
|
|
|
state: deferred
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
2007-05-21 06:12:55 +00:00
|
|
|
show_from: <%= next_week %>
|
2007-03-30 04:36:52 +00:00
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_tix:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 16
|
|
|
|
context_id: 10
|
|
|
|
project_id: 4
|
|
|
|
description: Buy tix
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
show_from: <%= next_week %>
|
|
|
|
user_id: 2
|
|
|
|
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
pal_confirmation:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 17
|
|
|
|
context_id: 11
|
|
|
|
project_id: 4
|
|
|
|
description: Confirmation from pal
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
show_from: <%= next_week %>
|
|
|
|
user_id: 2
|
2008-10-14 22:49:17 +02:00
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_bill_gates_every_day:
|
2008-10-14 22:49:17 +02:00
|
|
|
id: 18
|
|
|
|
user_id: 1
|
|
|
|
context_id: 1
|
|
|
|
project_id: 2
|
|
|
|
description: Call Bill Gates every day
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= last_week %>
|
|
|
|
due: <%= last_week %>
|
|
|
|
completed_at: ~
|
|
|
|
show_from: ~
|
|
|
|
recurring_todo_id: 1
|