Sha256: 626a6dcd6afcf495777523f6dc73dd6dd109445e3ba1f962cf585872a69d5954
Contents?: true
Size: 734 Bytes
Versions: 20
Compression:
Stored size: 734 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe ArcgisHelper, type: :helper do describe '#arcgis_link' do let(:application_name) { 'My GeoBlacklight Deployment' } it 'creates a valid ArcGIS online url with correct params' do expect(arcgis_link('http://example.com/foo/MapServer')).to eq 'https://www.arcgis.com/home/webmap/viewer.html?urls=http%3A%2F%2Fexample.com%2Ffoo%2FMapServer' end it 'handles multiple urls' do expect(arcgis_link(['http://example.com/foo/MapServer', 'http://example.com/foo/FeatureServer'])).to eq 'https://www.arcgis.com/home/webmap/viewer.html?urls=http%3A%2F%2Fexample.com%2Ffoo%2FMapServer&urls=http%3A%2F%2Fexample.com%2Ffoo%2FFeatureServer' end end end
Version data entries
20 entries across 20 versions & 1 rubygems