mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 06:51:48 +01:00
Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
This commit is contained in:
parent
6a42901514
commit
4cbf5a34d3
2269 changed files with 0 additions and 0 deletions
115
test/fixtures/contexts.yml
vendored
Normal file
115
test/fixtures/contexts.yml
vendored
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
<%
|
||||
|
||||
def today
|
||||
Time.now.utc.to_s(:db)
|
||||
end
|
||||
|
||||
%>
|
||||
agenda:
|
||||
id: 1
|
||||
name: agenda
|
||||
position: 1
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
call:
|
||||
id: 2
|
||||
name: call
|
||||
position: 2
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
email:
|
||||
id: 3
|
||||
name: email
|
||||
position: 3
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
errand:
|
||||
id: 4
|
||||
name: errand
|
||||
position: 4
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
lab:
|
||||
id: 5
|
||||
name: lab
|
||||
position: 5
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
library:
|
||||
id: 6
|
||||
name: library
|
||||
position: 6
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
freetime:
|
||||
id: 7
|
||||
name: freetime
|
||||
position: 7
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
office:
|
||||
id: 8
|
||||
name: office
|
||||
position: 8
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
waitingfor:
|
||||
id: 9
|
||||
name: waiting for
|
||||
position: 9
|
||||
hide: false
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
office_otheruser:
|
||||
id: 10
|
||||
name: office
|
||||
position: 1
|
||||
hide: false
|
||||
user_id: 2
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
waitingfor_otheruser:
|
||||
id: 11
|
||||
name: waiting for
|
||||
position: 2
|
||||
hide: false
|
||||
user_id: 2
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
someday_maybe:
|
||||
id: 12
|
||||
name: someday maybe
|
||||
position: 10
|
||||
hide: true
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
29
test/fixtures/notes.yml
vendored
Normal file
29
test/fixtures/notes.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
<%
|
||||
def today
|
||||
Time.now.utc.to_s(:db)
|
||||
end
|
||||
|
||||
def next_week
|
||||
1.week.from_now.utc.to_s(:db)
|
||||
end
|
||||
|
||||
def last_week
|
||||
1.week.ago.utc.to_s(:db)
|
||||
end
|
||||
%>
|
||||
|
||||
first_notes:
|
||||
id: 1
|
||||
user_id: 1
|
||||
project_id: 1
|
||||
body: Need to collect a catalogue from Time Machines R Us
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
another_notes:
|
||||
id: 2
|
||||
user_id: 1
|
||||
project_id: 1
|
||||
body: Should I go for a swirly effect or a whooshy one?
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
36
test/fixtures/preferences.yml
vendored
Normal file
36
test/fixtures/preferences.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
admin_user_prefs:
|
||||
id: 1
|
||||
user_id: 1
|
||||
staleness_starts: 7
|
||||
date_format: "%d/%m/%Y"
|
||||
title_date_format: "%A, %d %B %Y"
|
||||
show_number_completed: 5
|
||||
show_completed_projects_in_sidebar: true
|
||||
show_hidden_contexts_in_sidebar: true
|
||||
show_hidden_projects_in_sidebar: true
|
||||
admin_email: butshesagirl@rousette.org.uk
|
||||
week_starts: 1
|
||||
due_style: 0
|
||||
refresh: 0
|
||||
time_zone: "London"
|
||||
verbose_action_descriptors: true
|
||||
show_project_on_todo_done: false
|
||||
|
||||
other_user_prefs:
|
||||
id: 2
|
||||
user_id: 2
|
||||
staleness_starts: 7
|
||||
date_format: "%d/%m/%Y"
|
||||
title_date_format: "%A, %d %B %Y"
|
||||
show_number_completed: 5
|
||||
show_completed_projects_in_sidebar: true
|
||||
show_hidden_contexts_in_sidebar: true
|
||||
show_hidden_projects_in_sidebar: true
|
||||
admin_email: butshesagirl@rousette.org.uk
|
||||
week_starts: 1
|
||||
due_style: 0
|
||||
refresh: 0
|
||||
time_zone: "London"
|
||||
verbose_action_descriptors: false
|
||||
show_project_on_todo_done: true
|
||||
47
test/fixtures/projects.yml
vendored
Normal file
47
test/fixtures/projects.yml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
<%
|
||||
def today
|
||||
Time.now.utc.beginning_of_day.to_s(:db)
|
||||
end
|
||||
%>
|
||||
|
||||
timemachine:
|
||||
id: 1
|
||||
name: Build a working time machine
|
||||
description: ''
|
||||
position: 1
|
||||
state: 'active'
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
default_context_id: 5
|
||||
|
||||
moremoney:
|
||||
id: 2
|
||||
name: Make more money than Billy Gates
|
||||
description: ''
|
||||
position: 2
|
||||
state: 'active'
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
gardenclean:
|
||||
id: 3
|
||||
name: Evict dinosaurs from the garden
|
||||
description: ''
|
||||
position: 3
|
||||
state: 'active'
|
||||
user_id: 1
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
|
||||
attendrailsconf:
|
||||
id: 4
|
||||
name: Attend RailsConf
|
||||
description: ''
|
||||
position: 1
|
||||
state: 'active'
|
||||
user_id: 2
|
||||
created_at: <%= today %>
|
||||
updated_at: <%= today %>
|
||||
29
test/fixtures/taggings.yml
vendored
Normal file
29
test/fixtures/taggings.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Todo 1 should be tagged with foo and bar
|
||||
foo_bar1:
|
||||
id: 1
|
||||
tag_id: 1
|
||||
taggable_id: 1 # Call Bill Gates
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
|
||||
foo_bar2:
|
||||
id: 2
|
||||
tag_id: 2
|
||||
taggable_id: 1 # Call Bill Gates
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
|
||||
# Todo 2 should be tagged with foo
|
||||
foo1:
|
||||
id: 3
|
||||
tag_id: 1
|
||||
taggable_id: 2 # Call dinosaur exterminator
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
|
||||
foo2:
|
||||
id: 4
|
||||
tag_id: 1
|
||||
taggable_id: 3 # Buy milk - completed
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
17
test/fixtures/tags.yml
vendored
Normal file
17
test/fixtures/tags.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
foo:
|
||||
id: 1
|
||||
name: foo
|
||||
created_at: <%= Time.now.utc.to_s(:db) %>
|
||||
updated_at: <%= Time.now.utc.to_s(:db) %>
|
||||
|
||||
bar:
|
||||
id: 2
|
||||
name: bar
|
||||
created_at: <%= Time.now.utc.to_s(:db) %>
|
||||
updated_at: <%= Time.now.utc.to_s(:db) %>
|
||||
|
||||
baz:
|
||||
id: 3
|
||||
name: baz
|
||||
created_at: <%= Time.now.utc.to_s(:db) %>
|
||||
updated_at: <%= Time.now.utc.to_s(:db) %>
|
||||
232
test/fixtures/todos.yml
vendored
Normal file
232
test/fixtures/todos.yml
vendored
Normal file
|
|
@ -0,0 +1,232 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
<%
|
||||
|
||||
def today
|
||||
Time.now.utc.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
def next_week
|
||||
1.week.from_now.beginning_of_day.utc.to_s(:db)
|
||||
end
|
||||
|
||||
def last_week
|
||||
1.week.ago.utc.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
def two_weeks_ago
|
||||
2.weeks.ago.utc.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
def two_weeks_hence
|
||||
2.weeks.from_now.utc.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
|
||||
30
test/fixtures/users.yml
vendored
Normal file
30
test/fixtures/users.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
admin_user:
|
||||
id: 1
|
||||
login: admin
|
||||
crypted_password: <%= Digest::SHA1.hexdigest("#{Tracks::Config.salt}--abracadabra--") %>
|
||||
token: <%= Digest::SHA1.hexdigest("adminSat Feb 25 17:14:00 GMT 20060.236961325863376") %>
|
||||
is_admin: true
|
||||
first_name: Admin
|
||||
last_name: Schmadmin
|
||||
auth_type: database
|
||||
|
||||
other_user:
|
||||
id: 2
|
||||
login: jane
|
||||
crypted_password: <%= Digest::SHA1.hexdigest("#{Tracks::Config.salt}--sesame--") %>
|
||||
token: <%= Digest::SHA1.hexdigest("janeSun Feb 19 14:42:45 GMT 20060.408173979260027") %>
|
||||
is_admin: false
|
||||
first_name: Jane
|
||||
last_name: Doe
|
||||
auth_type: database
|
||||
|
||||
ldap_user:
|
||||
id: 3
|
||||
login: john
|
||||
crypted_password: test
|
||||
token: <%= Digest::SHA1.hexdigest("johnSun Feb 19 14:42:45 GMT 20060.408173979260027") %>
|
||||
is_admin: false
|
||||
first_name: John
|
||||
last_name: Deere
|
||||
auth_type: ldap
|
||||
Loading…
Add table
Add a link
Reference in a new issue