Commit 500752ef8fd1e0e655d9f6054dab965c7c848cec

Authored by Joenio Costa
Committed by Daniela Feitosa
1 parent 88adb34e

Link to enterprise products point to manage_products controller

- No more to 'catalog' controller
  But this will change in ActionItem1469

(ActionItem1907)
app/helpers/search_helper.rb
... ... @@ -65,7 +65,7 @@ module SearchHelper
65 65 data << content_tag('strong', _('Address: ')) + profile.address + '<br/>'
66 66 end
67 67 unless profile.products.empty?
68   - data << content_tag('strong', _('Products/Services: ')) + profile.products.map{|i| link_to(i.name, :controller => 'catalog', :profile => profile.identifier, :action => 'show', :id => i.id)}.join(', ') + '<br/>'
  68 + data << content_tag('strong', _('Products/Services: ')) + profile.products.map{|i| link_to(i.name, :controller => 'manage_products', :profile => profile.identifier, :action => 'show', :id => i.id)}.join(', ') + '<br/>'
69 69 end
70 70 if profile.respond_to?(:distance) and !profile.distance.nil?
71 71 data << content_tag('strong', _('Distance: ')) + "%.2f%" % profile.distance + '<br/>'
... ...
test/functional/catalog_controller_test.rb
... ... @@ -87,4 +87,10 @@ class CatalogControllerTest &lt; Test::Unit::TestCase
87 87 assert_tag :a, :attributes => { :href => "http://" + url}, :content => url.scan(/.{4}/).join('&#x200B;')
88 88 end
89 89  
  90 + should 'show action moved to manage_products controller' do
  91 + assert_raise ActionController::RoutingError do
  92 + get :show, :id => 1
  93 + end
  94 + end
  95 +
90 96 end
... ...