-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make Cartodb the default postiron basemap
- Loading branch information
1 parent
8d5494a
commit 5fbbd8a
Showing
6 changed files
with
13 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
require 'spec_helper' | ||
|
||
feature 'Configurable basemap', js: true do | ||
scenario 'defaults to mapquest' do | ||
scenario 'defaults to positron' do | ||
visit root_path | ||
expect(page).to have_css "img[src*='mqcdn.com']" | ||
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 mapquest map' do | ||
scenario 'has CartoDB map' do | ||
visit root_path | ||
expect(page).to have_css "img[src*='mqcdn.com']" | ||
expect(page).to have_css "img[src*='cartodb']" | ||
end | ||
end | ||
feature 'using positron' do | ||
feature 'using darkMatter' do | ||
before do | ||
CatalogController.blacklight_config.basemap_provider = 'positron' | ||
CatalogController.blacklight_config.basemap_provider = 'darkMatter' | ||
end | ||
scenario 'has positron map' do | ||
scenario 'has darkMatter map' do | ||
puts CatalogController.blacklight_config.basemap_provider | ||
visit root_path | ||
expect(page).to have_css "img[src*='light_all']" | ||
expect(page).to have_css "img[src*='dark_all']" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters