From 178657fbd179314337949e3fc5935253da3339b8 Mon Sep 17 00:00:00 2001 From: Jack Reed Date: Fri, 1 Jul 2016 13:18:36 -0700 Subject: [PATCH] fix pending specs --- spec/features/index_page_map_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/features/index_page_map_spec.rb b/spec/features/index_page_map_spec.rb index 38b2400..3ecf931 100644 --- a/spec/features/index_page_map_spec.rb +++ b/spec/features/index_page_map_spec.rb @@ -1,13 +1,15 @@ require 'spec_helper' feature 'Index page map', js: true do - pending 'renders a leaflet map' do - visit search_catalog_path(q: 'medicine', view: 'maps') + it 'renders a leaflet map' do + visit search_catalog_path(q: 'strong', view: 'heatmaps') expect(page).to have_css '.leaflet-map-pane' # Zoomed to world expect(page).to have_css 'img[src="http://a.basemaps.cartocdn.com/light_all/1/0/0.png"]' expect(page).to have_css '#index-map-sidebar', visible: false - click('svg g path') + page.find('svg g path').click expect(page).to have_css '#index-map-sidebar', visible: true + expect(page) + .to have_css 'h3.media-heading a', text: '"Strong Medicine speaks"' end end