Commit 73926c55b90786cd3396b20d28bf67025e44db89
1 parent
88057aef
Exists in
master
and in
29 other branches
ActionItem345: remove term 'Category:' from product info's
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1768 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
11 additions
and
3 deletions
Show diff stats
app/views/search/_product.rhtml
... | ... | @@ -2,8 +2,7 @@ |
2 | 2 | |
3 | 3 | <li> |
4 | 4 | <%= link_to_product product, :class => 'product-pic', :style => 'background-image:url(%s)' % |
5 | - ( product.image ? product.image.public_filename(:minor) : | |
6 | - '/images/icons-app/product-default-pic-minor.png' ) %> | |
5 | + ( product.image ? product.image.public_filename(:minor) : '/images/icons-app/product-default-pic-minor.png' ) %> | |
7 | 6 | <strong> |
8 | 7 | <%= link_to_product product %> |
9 | 8 | </strong> |
... | ... | @@ -12,6 +11,6 @@ |
12 | 11 | <% if product.enterprise %> |
13 | 12 | <li> <%= _('Suplier: %s') % link_to_homepage(product.enterprise.name, product.enterprise.identifier) %> </li> |
14 | 13 | <% end %> |
15 | - <li> <%= _('Category: %s') % link_to_category(product.product_category) %> </li> | |
14 | + <li> <%= link_to_category(product.product_category) %> </li> | |
16 | 15 | </ul> |
17 | 16 | </li> | ... | ... |
test/functional/search_controller_test.rb
... | ... | @@ -748,4 +748,13 @@ class SearchControllerTest < Test::Unit::TestCase |
748 | 748 | assert_not_includes assigns(:results)[:comments], comment4 |
749 | 749 | end |
750 | 750 | |
751 | + should 'not show term "Category:" before product category' do | |
752 | + Profile.delete_all | |
753 | + ent = Enterprise.create!(:name => 'teste1', :identifier => 'teste1') | |
754 | + prod1 = ent.products.create!(:name => 'a beautiful product') | |
755 | + prod2 = ent.products.create!(:name => 'another beautiful product') | |
756 | + get :assets, :asset => 'products' | |
757 | + assert_no_match /Category:/, @response.body | |
758 | + end | |
759 | + | |
751 | 760 | end | ... | ... |