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

Version Path
geoblacklight-3.8.1 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.8.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.7.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.6.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.5.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0.pre.alpha.3 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0.pre.alpha.1 spec/helpers/arcgis_helper_spec.rb
geoblacklight-4.0.0.pre.alpha spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.4.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.3.1 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.3.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.2.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.1.0 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.0.1 spec/helpers/arcgis_helper_spec.rb
geoblacklight-3.0.0 spec/helpers/arcgis_helper_spec.rb