Sha256: f9dee9158d4d529e13c7d8c7400889d1f0f159b68fdb698d6b6abaffc194b1e0

Contents?: true

Size: 697 Bytes

Versions: 11

Compression:

Stored size: 697 Bytes

Contents

require 'spec_helper'

feature 'Configurable basemap', js: true do
  scenario 'defaults to positron' do
    visit root_path
    expect(page).to have_css "img[src*='cartodb']"
  end
  feature 'without provided basemap config' do
    before do
      CatalogController.blacklight_config.basemap_provider = nil
    end
    scenario 'has CartoDB map' do
      visit root_path
      expect(page).to have_css "img[src*='cartodb']"
    end
  end
  feature 'using darkMatter' do
    before do
      CatalogController.blacklight_config.basemap_provider = 'darkMatter'
    end
    scenario 'has darkMatter map' do
      visit root_path
      expect(page).to have_css "img[src*='dark_all']"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
geoblacklight-1.8.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.7.1 spec/features/configurable_basemap_spec.rb
geoblacklight-1.7.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.6.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.5.1 spec/features/configurable_basemap_spec.rb
geoblacklight-1.5.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.4.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.3.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.2.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.1.2 spec/features/configurable_basemap_spec.rb
geoblacklight-1.1.0 spec/features/configurable_basemap_spec.rb