]> git.openstreetmap.org Git - rails.git/blobdiff - test/fixtures/relation_members.yml
Refactor remaining way model tests to use factories.
[rails.git] / test / fixtures / relation_members.yml
index 27e8b533aa5542ffb1db2d3a35d619c64b79808f..a5f04f1ef28bada604572422d7047f2c13f6aebc 100644 (file)
 t1:
-  id: 1
+  relation_id: 1
+  sequence_id: 1
   member_role: "some"
-  member_type: "way"
+  member_type: "Way"
   member_id: 3
   version: 1
+
 t2:
-  id: 1
+  relation_id: 1
+  sequence_id: 2
   member_role: "some"
-  member_type: "node"
+  member_type: "Node"
   member_id: 5
   version: 1
+
 t3:
-  id: 1
+  relation_id: 1
+  sequence_id: 3
   member_role: "some"
-  member_type: "relation"
+  member_type: "Relation"
   member_id: 3
   version: 1
+
 t4:
-  id: 3
+  relation_id: 3
+  sequence_id: 1
   member_role: "some"
-  member_type: "node"
+  member_type: "Node"
   member_id: 5
   version: 1
+
+t5:
+  relation_id: 2
+  sequence_id: 1
+  member_role: "some"
+  member_type: "Node"
+  member_id: 5
+  version: 1
+  
+public_used:
+  relation_id: 6
+  sequence_id: 1
+  member_role: "used by other relation"
+  member_type: "Relation"
+  member_id: 5
+  version: 1
+
+r8_v1_m1:
+  relation_id: 8
+  sequence_id: 1
+  member_role: "some node"
+  member_type: "Node"
+  member_id: 15
+  version: 1
+
+r8_v2_m1:
+  relation_id: 8
+  sequence_id: 1
+  member_role: "some changed node"
+  member_type: "Node"
+  member_id: 15
+  version: 2
+
+r8_v3_m1:
+  relation_id: 8
+  sequence_id: 1
+  member_role: "some changed node"
+  member_type: "Node"
+  member_id: 15
+  version: 3
+
+r8_v3_m3:
+  relation_id: 8
+  sequence_id: 2
+  member_role: "some relation"
+  member_type: "Relation"
+  member_id: 7
+  version: 3
+
+r8_v4_m1:
+  relation_id: 8
+  sequence_id: 1
+  member_role: "some node"
+  member_type: "Node"
+  member_id: 15
+  version: 4
+
+r8_v4_m2:
+  relation_id: 8
+  sequence_id: 2
+  member_role: "some way"
+  member_type: "Way"
+  member_id: 4
+  version: 4
+
+r8_v4_m3:
+  relation_id: 8
+  sequence_id: 3
+  member_role: "some relation"
+  member_type: "Relation"
+  member_id: 7
+  version: 4