2 Feature: Updates of linked places
 
   3     Tests that linked places are correctly added and deleted.
 
   6     Scenario: Add linked place when linking relation is renamed
 
   8             | osm_id | class | type | name | geometry
 
   9             | 1      | place | city | foo  | 0 0
 
  11             | osm_type | osm_id | class    | type           | name | admin_level | geometry
 
  12             | R        | 1      | boundary | administrative | foo  | 8           | poly-area:0.1
 
  14         And sending query "foo" with dups
 
  18         When updating place areas
 
  19          | osm_type | osm_id | class    | type           | name   | admin_level | geometry
 
  20          | R        | 1      | boundary | administrative | foobar | 8           | poly-area:0.1
 
  21         Then table placex contains
 
  22          | object | linked_place_id
 
  24         When sending query "foo" with dups
 
  29     Scenario: Add linked place when linking relation is removed
 
  31             | osm_id | class | type | name | geometry
 
  32             | 1      | place | city | foo  | 0 0
 
  34             | osm_type | osm_id | class    | type           | name | admin_level | geometry
 
  35             | R        | 1      | boundary | administrative | foo  | 8           | poly-area:0.1
 
  37         And sending query "foo" with dups
 
  41         When marking for delete R1
 
  42         Then table placex contains
 
  43          | object | linked_place_id
 
  45         And sending query "foo" with dups
 
  50     Scenario: Remove linked place when linking relation is added
 
  52             | osm_id | class | type | name | geometry
 
  53             | 1      | place | city | foo  | 0 0
 
  55         And sending query "foo" with dups
 
  59         When updating place areas
 
  60          | osm_type | osm_id | class    | type           | name   | admin_level | geometry
 
  61          | R        | 1      | boundary | administrative | foo    | 8           | poly-area:0.1
 
  62         Then table placex contains
 
  63          | object | linked_place_id
 
  65         When sending query "foo" with dups
 
  70     Scenario: Remove linked place when linking relation is renamed
 
  72             | osm_id | class | type | name | geometry
 
  73             | 1      | place | city | foo  | 0 0
 
  75          | osm_type | osm_id | class    | type           | name   | admin_level | geometry
 
  76          | R        | 1      | boundary | administrative | foobar | 8           | poly-area:0.1
 
  78         And sending query "foo" with dups
 
  82         When updating place areas
 
  83          | osm_type | osm_id | class    | type           | name   | admin_level | geometry
 
  84          | R        | 1      | boundary | administrative | foo    | 8           | poly-area:0.1
 
  85         Then table placex contains
 
  86          | object | linked_place_id
 
  88         When sending query "foo" with dups