tracks/test/fixtures/todos.yml
Luke Melia 901a58f8a3 Upgraded to Rails 2.1. This can have wide ranging consequences, so please help track down any issues introduced by the upgrade. Requires environment.rb modifications.
Changes you will need to make:

 * In your environment.rb, you will need to update references to a few files per environment.rb.tmpl
 * In your environment.rb, you will need to specify the local time zone of the computer that is running your Tracks install.

Other notes on my changes:

 * Modified our code to take advantage of Rails 2.1's slick time zone support.
 * Upgraded will_paginate for compatibility
 * Hacked the Selenium on Rails plugin, which has not been updated in some time and does not support Rails 2.1
 * Verified that all tests pass on my machine, including Selenium tests -- I'd like confirmation from others, too.
2008-06-17 01:13:25 -04:00

232 lines
3.7 KiB
YAML

# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
<%
def today
Time.zone.now.beginning_of_day.to_s(:db)
end
def next_week
1.week.from_now.beginning_of_day.to_s(:db)
end
def last_week
1.week.ago.beginning_of_day.to_s(:db)
end
def two_weeks_ago
2.weeks.ago.beginning_of_day.to_s(:db)
end
def two_weeks_hence
2.weeks.from_now.beginning_of_day.to_s(:db)
end
%>
1:
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
2:
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
3:
id: 3
context_id: 4
project_id: ~
description: Buy milk
notes: ~
state: completed
created_at: <%= today %>
due: ~
completed_at: <%= today %>
user_id: 1
4:
id: 4
context_id: 4
project_id: ~
description: Buy bread
notes: ~
state: completed
created_at: <%= today %>
due: ~
completed_at: <%= today %>
user_id: 1
5:
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
6:
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
7:
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
8:
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
9:
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
10:
id: 10
context_id: 1
project_id: ~
description: foo
notes: ~
state: completed
created_at: <%= two_weeks_ago %>
due: <%= two_weeks_hence %>
completed_at: <%= last_week %>
user_id: 1
11:
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
12:
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
13:
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
14:
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
15:
id: 15
context_id: 6
project_id: 1
description: Select Delorean model
notes: ~
state: deferred
created_at: <%= today %>
due: ~
completed_at: ~
show_from: <%= next_week %>
user_id: 1
16:
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
17:
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