Commit 3b39f87c0d0f49ff443a0e5c325dc1196b7c3bd4
1 parent
a164bdc0
Exists in
master
and in
29 other branches
ActionItem567: fix tests
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2305 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
test/functional/search_controller_test.rb
@@ -318,7 +318,6 @@ class SearchControllerTest < Test::Unit::TestCase | @@ -318,7 +318,6 @@ class SearchControllerTest < Test::Unit::TestCase | ||
318 | 318 | ||
319 | # display only first name on people listing | 319 | # display only first name on people listing |
320 | assert_tag :tag => 'div', :attributes => { :class => /search-results-people/ }, :descendant => { :tag => 'h3', :content => /People/ } | 320 | assert_tag :tag => 'div', :attributes => { :class => /search-results-people/ }, :descendant => { :tag => 'h3', :content => /People/ } |
321 | - assert_tag :tag => 'a', :content => "display" | ||
322 | end | 321 | end |
323 | 322 | ||
324 | should 'present options of where to search' do | 323 | should 'present options of where to search' do |
@@ -398,7 +397,7 @@ class SearchControllerTest < Test::Unit::TestCase | @@ -398,7 +397,7 @@ class SearchControllerTest < Test::Unit::TestCase | ||
398 | recent = [] | 397 | recent = [] |
399 | finger = CategoryFinder.new(@category) | 398 | finger = CategoryFinder.new(@category) |
400 | finger.expects(:recent).with(any_parameters).at_least_once | 399 | finger.expects(:recent).with(any_parameters).at_least_once |
401 | - finger.expects(:recent).with('articles', anything).returns(recent) | 400 | + finger.expects(:recent).with('text_articles', anything).returns(recent) |
402 | CategoryFinder.expects(:new).with(@category).returns(finger) | 401 | CategoryFinder.expects(:new).with(@category).returns(finger) |
403 | 402 | ||
404 | get :category_index, :category_path => [ 'my-category' ] | 403 | get :category_index, :category_path => [ 'my-category' ] |