Skip to content

Commit

Permalink
update fake esri fixtures with real provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Jul 27, 2016
1 parent 89deba6 commit 6967042
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions spec/features/esri_viewer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

feature 'feature_layer reference', js: true do
scenario 'displays image map layer' do
visit solr_document_path 'minnesota-test-oregon-naip-2011'
visit solr_document_path 'princeton-test-oregon-naip-2011'
expect(page).to have_css '.leaflet-control-zoom', visible: true
expect(page).to have_css 'img.leaflet-image-layer', visible: true
end
scenario 'displays dynamic layer (all layers)' do
visit solr_document_path 'illinois-f14ff4-1359-4beb-b931-5cb41d20ab90'
visit solr_document_path 'minnesota-f14ff4-1359-4beb-b931-5cb41d20ab90'
expect(page).to have_css '.leaflet-control-zoom', visible: true
expect(page).to have_css 'img.leaflet-image-layer', visible: true
end
Expand All @@ -18,18 +18,18 @@
end
scenario 'displays feature layer' do
pending 'cannot currently test for svg feature'
visit solr_document_path 'minnesota-772ebcaf2ec0405ea1b156b5937593e7_0'
visit solr_document_path 'minnesota-e2f33b52-4039-4bbb-9095-b5cdc0175943'
expect(page).to have_css '.leaflet-control-zoom', visible: true
expect(Nokogiri::HTML.parse(page.body).css('g').length).to eq 23
fail
end
scenario 'displays image map layer' do
visit solr_document_path 'minnesota-test-oregon-naip-2011'
visit solr_document_path 'princeton-test-oregon-naip-2011'
expect(page).to have_css '.leaflet-control-zoom', visible: true
expect(page).to have_css 'img.leaflet-image-layer', visible: true
end
scenario 'displays tiled map layer' do
visit solr_document_path 'minnesota-test-soil-survey-map'
visit solr_document_path 'nyu-test-soil-survey-map'
expect(page).to have_css '.leaflet-control-zoom', visible: true
expect(page).to have_css 'img.leaflet-tile.leaflet-tile-loaded', visible: true
end
Expand Down
2 changes: 1 addition & 1 deletion spec/features/layer_opacity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
end

scenario 'ESRI image service layer should have opacity control' do
visit solr_document_path('minnesota-test-oregon-naip-2011')
visit solr_document_path('princeton-test-oregon-naip-2011')
expect(page).to have_css('div.opacity-text', text: '75%')
expect(page.find('img.leaflet-image-layer', match: :first)[:style]).to match(/opacity: 0.75;/)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"dc_title_s": "Glacial Boundaries: Illinois, 1997",
"dc_description_s": "This is an SDE feature class containing glacial boundary polygons representing the extent of glaciation for major glacial episodes in Illinois. Data are originally from the Quaternary Deposits in Illinois (1:500,000) map by Lineback (1979). Data have been subsequently modified to conform with the reclassification by Hansel and Johnson, ISGS Bulletin 104 (1996). Glacial episode is identified for each polygon. The data include the Wisconsin, Illinois and the Pre-Illinois episodes. Areas not glaciated are also identified. The nominal scale is 1:500,000.",
"dc_rights_s": "Public",
"dct_provenance_s": "University of Illinois",
"dct_provenance_s": "Minnesota",
"layer_id_s": "urn:f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_slug_s": "illinois-f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_slug_s": "minnesota-f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_modified_dt": "2016-01-12T16:10:41Z",
"dc_creator_sm": [
"Illinois State Geological Survey"
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/solr_documents/esri-feature-layer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
"layer_id_s": "urn:e2f33b52-4039-4bbb-9095-b5cdc0175943",
"georss_box_s": "44.8901520021226 -93.3291083642602 45.0512462600492 -93.1896159986687",
"dc_title_s": "Fire Station Areas: Minneapolis, Minnesota",
"layer_slug_s": "Minnesota-e2f33b52-4039-4bbb-9095-b5cdc0175943"
"layer_slug_s": "minnesota-e2f33b52-4039-4bbb-9095-b5cdc0175943"
}
4 changes: 2 additions & 2 deletions spec/fixtures/solr_documents/esri-image-map-layer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"dct_temporal_sm": [
"2011"
],
"dct_provenance_s": "University of Minnesota",
"dct_provenance_s": "Princeton",
"georss_box_s": "41.91 -124.88 46.34 -116.41",
"layer_slug_s": "minnesota-test-oregon-naip-2011",
"layer_slug_s": "princeton-test-oregon-naip-2011",
"layer_id_s": "oregon-naip-2011",
"layer_geom_type_s": "Raster",
"layer_modified_dt": "2015-27-15T00:41:49Z",
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/solr_documents/esri-tiled_map_layer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dct_temporal_sm": [
"2010"
],
"dct_provenance_s": "University of Minnesota",
"dct_provenance_s": "NYU",
"georss_box_s": "21.8079 -129.4956 48.6336 -64.4393",
"layer_slug_s": "minnesota-test-soil-survey-map",
"layer_slug_s": "nyu-test-soil-survey-map",
"layer_id_s": "test-soil-survey_map",
"layer_geom_type_s": "Raster",
"layer_modified_dt": "2015-06-16T00:59:49Z",
Expand Down

0 comments on commit 6967042

Please sign in to comment.