Add more tests for BrowseHelper
This commit is contained in:
parent
733108588c
commit
0de7fdb4df
10 changed files with 244 additions and 6 deletions
24
test/fixtures/current_node_tags.yml
vendored
24
test/fixtures/current_node_tags.yml
vendored
|
@ -33,3 +33,27 @@ public_v_t1:
|
|||
k: 'testvisible'
|
||||
v: 'yes'
|
||||
|
||||
nwn_name:
|
||||
node_id: 18
|
||||
k: 'name'
|
||||
v: 'Test Node'
|
||||
|
||||
nwn_name_ru:
|
||||
node_id: 18
|
||||
k: 'name:ru'
|
||||
v: 'проверки узла'
|
||||
|
||||
nwn_building:
|
||||
node_id: 18
|
||||
k: 'building'
|
||||
v: 'yes'
|
||||
|
||||
nwn_tourism:
|
||||
node_id: 18
|
||||
k: 'tourism'
|
||||
v: 'museum'
|
||||
|
||||
nwn_shop:
|
||||
node_id: 18
|
||||
k: 'shop'
|
||||
v: 'gift'
|
||||
|
|
9
test/fixtures/current_nodes.yml
vendored
9
test/fixtures/current_nodes.yml
vendored
|
@ -171,3 +171,12 @@ redacted_node:
|
|||
tile: <%= QuadTile.tile_for_point(1,1) %>
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
|
||||
node_with_name:
|
||||
id: 18
|
||||
latitude: <%= 1*SCALE %>
|
||||
longitude: <%= 1*SCALE %>
|
||||
changeset_id: 2
|
||||
visible: true
|
||||
version: 2
|
||||
tile: <%= QuadTile.tile_for_point(1,1) %>
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
|
|
59
test/fixtures/node_tags.yml
vendored
59
test/fixtures/node_tags.yml
vendored
|
@ -52,3 +52,62 @@ public_v_t1:
|
|||
v: 'yes'
|
||||
version: 1
|
||||
|
||||
nwnv1_name:
|
||||
node_id: 18
|
||||
k: 'name'
|
||||
v: 'Test Node'
|
||||
version: 1
|
||||
|
||||
nwnv1_name_ru:
|
||||
node_id: 18
|
||||
k: 'name:ru'
|
||||
v: 'проверки узла'
|
||||
version: 1
|
||||
|
||||
nwnv1_building:
|
||||
node_id: 18
|
||||
k: 'building'
|
||||
v: 'yes'
|
||||
version: 1
|
||||
|
||||
nwnv1_tourism:
|
||||
node_id: 18
|
||||
k: 'tourism'
|
||||
v: 'museum'
|
||||
version: 1
|
||||
|
||||
nwnv1_shop:
|
||||
node_id: 18
|
||||
k: 'shop'
|
||||
v: 'gift'
|
||||
version: 1
|
||||
|
||||
nwnv2_name:
|
||||
node_id: 18
|
||||
k: 'name'
|
||||
v: 'Test Node'
|
||||
version: 2
|
||||
|
||||
nwnv2_name_ru:
|
||||
node_id: 18
|
||||
k: 'name:ru'
|
||||
v: 'проверки узла'
|
||||
version: 2
|
||||
|
||||
nwnv2_building:
|
||||
node_id: 18
|
||||
k: 'building'
|
||||
v: 'yes'
|
||||
version: 2
|
||||
|
||||
nwnv2_tourism:
|
||||
node_id: 18
|
||||
k: 'tourism'
|
||||
v: 'museum'
|
||||
version: 2
|
||||
|
||||
nwnv2_shop:
|
||||
node_id: 18
|
||||
k: 'shop'
|
||||
v: 'gift'
|
||||
version: 2
|
||||
|
|
21
test/fixtures/nodes.yml
vendored
21
test/fixtures/nodes.yml
vendored
|
@ -211,3 +211,24 @@ redacted_node_current_version:
|
|||
version: 2
|
||||
tile: <%= QuadTile.tile_for_point(1,1) %>
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
|
||||
node_with_name_redacted_version:
|
||||
node_id: 18
|
||||
latitude: <%= 1*SCALE %>
|
||||
longitude: <%= 1*SCALE %>
|
||||
changeset_id: 2
|
||||
visible: true
|
||||
version: 1
|
||||
tile: <%= QuadTile.tile_for_point(1,1) %>
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
redaction_id: 1
|
||||
|
||||
node_with_name_current_version:
|
||||
node_id: 18
|
||||
latitude: <%= 1*SCALE %>
|
||||
longitude: <%= 1*SCALE %>
|
||||
changeset_id: 2
|
||||
visible: true
|
||||
version: 2
|
||||
tile: <%= QuadTile.tile_for_point(1,1) %>
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue