Commit 83b3471a4b24c447b43ca73281f5e7ab5e38d438

Authored by AntonioTerceiro
1 parent 5aa334f5

ActionItem523: mocking the right methods

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2310 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/favorite_enterprises_block_test.rb
@@ -48,7 +48,7 @@ class FavoriteEnterprisesBlockTest < ActiveSupport::TestCase @@ -48,7 +48,7 @@ class FavoriteEnterprisesBlockTest < ActiveSupport::TestCase
48 block = FavoriteEnterprisesBlock.new 48 block = FavoriteEnterprisesBlock.new
49 block.expects(:owner).returns(person) 49 block.expects(:owner).returns(person)
50 50
51 - expects(:_).with('All favorite enterprises').returns('All enterprises') 51 + expects(:__).with('All favorite enterprises').returns('All enterprises')
52 expects(:link_to).with('All enterprises', :controller => 'profile', :profile => 'theprofile', :action => 'favorite_enterprises') 52 expects(:link_to).with('All enterprises', :controller => 'profile', :profile => 'theprofile', :action => 'favorite_enterprises')
53 53
54 instance_eval(&block.footer) 54 instance_eval(&block.footer)