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

Revision 11962, 1.3 KB checked in by zere, 5 years ago (diff)

Migration to add close-time to changesets. This replaces the boolean 'open' attribute. Added checks to ensure that the maximum lifetime and number of changes in a changeset are enforced. Added some tests.

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 
17second_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
31normal_user_version_change:
32  id: 4
33  user_id: 1
34  created_at: "2008-01-01 00:00:00"
35  closed_at: <%= DateTime.now + Rational(1,24) %>
36  min_lon: <%= 1 * SCALE %>
37  min_lat: <%= 1 * SCALE %>
38  max_lon: <%= 4 * SCALE %>
39  max_lat: <%= 4 * SCALE %>
40  num_changes: 8
41
42# changeset to contain all the invalid stuff that is in the
43# fixtures (nodes outside the world, etc...), but needs to have
44# a valid user...
45invalid_changeset:
46  id: 5
47  user_id: 3
48  created_at: "2008-01-01 00:00:00"
49  closed_at: "2008-01-02 00:00:00"
50  num_changes: 9
Note: See TracBrowser for help on using the repository browser.