Sha256: 97d520da78c83aa7605cb950654715582fe2f65c856117de2ee7fd45b469e025

Contents?: true

Size: 697 Bytes

Versions: 7

Compression:

Stored size: 697 Bytes

Contents

require 'spec_helper'

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
geoblacklight-0.12.1 spec/features/configurable_basemap_spec.rb
geoblacklight-0.12.0 spec/features/configurable_basemap_spec.rb
geoblacklight-0.11.1 spec/features/configurable_basemap_spec.rb
geoblacklight-0.11.0 spec/features/configurable_basemap_spec.rb
geoblacklight-0.10.2 spec/features/configurable_basemap_spec.rb
geoblacklight-0.10.1 spec/features/configurable_basemap_spec.rb
geoblacklight-0.10.0 spec/features/configurable_basemap_spec.rb