Commit e698ec68d936b6aa79e581e3d9035e8141441e91
1 parent
5794f6e2
Exists in
master
and in
29 other branches
ActionItem405: fixed the test for list the comments in the menu bar
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1935 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
app/views/search/people.rhtml
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | <% else %> |
12 | 12 | <h1> <%= @asset_name %>: <%= h(@category ? (_('Search results for "%{query}" in "%{category}"') % { :query => @query, :category => @category.name}) : (_('Search results for "%s"') % @query)) %> </h1> |
13 | 13 | <div style='text-align: center'> |
14 | - <%= link_to _('Browse by name'), :action => 'assets', :asset => @results.first.first %> | |
14 | + <%= link_to _('Browse by name'), :action => 'assets', :asset => @results.keys.first %> | |
15 | 15 | </div> |
16 | 16 | <% end %> |
17 | 17 | ... | ... |
test/unit/assets_helper_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | -class ApplicationHelperTest < Test::Unit::TestCase | |
3 | +class AssetsHelperTest < Test::Unit::TestCase | |
4 | 4 | |
5 | 5 | include AssetsHelper |
6 | 6 | |
... | ... | @@ -10,7 +10,7 @@ class ApplicationHelperTest < Test::Unit::TestCase |
10 | 10 | products |
11 | 11 | enterprises |
12 | 12 | communities |
13 | - comments | |
13 | + events | |
14 | 14 | ].each do |asset| |
15 | 15 | expects(:link_to).with(anything, { :controller => 'search', :action => 'assets', :asset => asset, :category_path => []}) |
16 | 16 | end |
... | ... | @@ -26,7 +26,7 @@ class ApplicationHelperTest < Test::Unit::TestCase |
26 | 26 | products |
27 | 27 | enterprises |
28 | 28 | communities |
29 | - comments | |
29 | + events | |
30 | 30 | ].each do |asset| |
31 | 31 | expects(:link_to).with(anything, { :controller => 'search', :action => 'assets', :asset => asset, :category_path => [ 'my-category' ]}) |
32 | 32 | end | ... | ... |