Commit a162ccff02711813a78768d01dfc89c79024a103

Authored by Rodrigo Souto
1 parent b2a0c431

Fixing html_safe and only starting server on tests run

app/helpers/search_helper.rb
... ... @@ -95,7 +95,7 @@ module SearchHelper
95 95 map_link = display?(asset, :map) ? (display == 'map' ? _('Map') : link_to(_('Map'), params.merge(:display => 'map'))) : nil
96 96 full_link = display?(asset, :full) ? (display == 'full' ? _('Full') : link_to(_('Full'), params.merge(:display => 'full'))) : nil
97 97 content_tag('div',
98   - content_tag('strong', _('Display')) + ': ' + [compact_link, map_link, full_link].compact.join(' | '),
  98 + content_tag('strong', _('Display')) + ': ' + [compact_link, map_link, full_link].compact.join(' | ').html_safe,
99 99 :class => 'search-customize-options'
100 100 )
101 101 end
... ...
plugins/solr/test/test_solr_helper.rb
... ... @@ -2,7 +2,7 @@
2 2 # FIXME Not working properly...
3 3 if not $test_helper_loaded
4 4 abort unless system 'rake -s solr:start'
5   - at_exit { system 'rake -s solr:stop' }
  5 +# at_exit { system 'rake -s solr:stop' }
6 6 $test_helper_loaded = true
7 7 end
8 8  
... ...