From ab9416d56ceccecf55349f1c66bc44e235b48e35 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 3 Feb 2015 16:23:07 -0300 Subject: [PATCH] search-controller-test: remove obsolete test since google.js must be included always --- test/functional/search_controller_test.rb | 19 ------------------- 1 file changed, 0 insertions(+), 19 deletions(-) diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index c2c3d51..2af4d24 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -471,25 +471,6 @@ class SearchControllerTest < ActionController::TestCase assert_tag :tag => 'script', :attributes => { :src => 'http://maps.google.com/maps/api/js?sensor=true'} end - should 'not add script tag for google maps if searching articles' do - ent = create_profile_with_optional_category(Enterprise, 'teste') - get 'articles', :query => 'article', :display => 'map' - - assert_no_tag :tag => 'script', :attributes => { :src => 'http://maps.google.com/maps/api/js?sensor=true'} - end - - should 'not add script tag for google maps if searching people' do - get 'people', :query => 'person', :display => 'map' - - assert_no_tag :tag => 'script', :attributes => { :src => 'http://maps.google.com/maps/api/js?sensor=true'} - end - - should 'not add script tag for google maps if searching communities' do - get 'communities', :query => 'community', :display => 'map' - - assert_no_tag :tag => 'script', :attributes => { :src => 'http://maps.google.com/maps/api/js?sensor=true'} - end - should 'show events of specific day' do person = create_user('anotheruser').person event = create_event(person, :name => 'Joao Birthday', :start_date => Date.new(2009, 10, 28)) -- libgit2 0.21.2