source: subversion/sites/rails_port_branches/api06/test/fixtures/changesets.yml @ 14565

Last change on this file since 14565 was 14565, checked in by Shaun McDonald, 10 years ago

Fixing some of the tests, adding the new tests to make sure that you can't edit when your not a public user

File size: 1.8 KB
Line 
1# FIXME! all of these changesets need their bounding boxes set correctly!
2#
3<% SCALE = 10000000 unless defined?(SCALE) %>
4
5# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
6normal_user_first_change:
7  id: 1
8  user_id: 1
9  created_at: "2007-01-01 00:00:00"
10  closed_at: <%= DateTime.now + Rational(1,24) %>
11  min_lon: <%= 1 * SCALE %>
12  min_lat: <%= 1 * SCALE %>
13  max_lon: <%= 5 * SCALE %>
14  max_lat: <%= 5 * SCALE %>
15  num_changes: 11
16 
17public_user_first_change:
18  id: 2
19  user_id: 2
20  created_at: "2008-05-01 01:23:45"
21  closed_at: <%= DateTime.now + Rational(1,24) %>
22  num_changes: 0
23
24normal_user_closed_change:
25  id: 3
26  user_id: 1
27  created_at: "2007-01-01 00:00:00"
28  closed_at: "2007-01-02 00:00:00"
29  num_changes: 0
30
31public_user_closed_change:
32  id: 7
33  user_id: 2
34  created_at: "2007-01-01 00:00:00"
35  closed_at: "2007-01-02 00:00:00"
36  num_changes: 0
37
38normal_user_version_change:
39  id: 4
40  user_id: 1
41  created_at: "2008-01-01 00:00:00"
42  closed_at: <%= DateTime.now + Rational(1,24) %>
43  min_lon: <%= 1 * SCALE %>
44  min_lat: <%= 1 * SCALE %>
45  max_lon: <%= 4 * SCALE %>
46  max_lat: <%= 4 * SCALE %>
47  num_changes: 8
48
49# changeset to contain all the invalid stuff that is in the
50# fixtures (nodes outside the world, etc...), but needs to have
51# a valid user...
52invalid_changeset:
53  id: 5
54  user_id: 3
55  created_at: "2008-01-01 00:00:00"
56  closed_at: "2008-01-02 00:00:00"
57  num_changes: 9
58
59# changeset which still has time remaining, but has been closed
60# by containing too many elements.
61too_many_elements_changeset:
62  id: 6
63  user_id: 1
64  created_at: "2008-01-01 00:00:00"
65  closed_at: <%= DateTime.now + Rational(1,24) %>
66  min_lon: <%= 1 * SCALE %>
67  min_lat: <%= 1 * SCALE %>
68  max_lon: <%= 4 * SCALE %>
69  max_lat: <%= 4 * SCALE %>
70  num_changes: <%= Changeset::MAX_ELEMENTS + 1 %>
71
Note: See TracBrowser for help on using the repository browser.