Commit 6148ec4902d78005427c2b68c0f8e8ca89bc48ad

Authored by Rafael Reggiani Manzo
1 parent 335b1bed

Fix community block unit test

After the extraction of HTML dependencies into helpers it has been
broken.
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/unit/communities_block_test.rb
... ... @@ -33,7 +33,7 @@ class CommunitiesBlockTest < ActiveSupport::TestCase
33 33 block = CommunitiesBlock.new
34 34 block.expects(:owner).returns(profile).at_least_once
35 35  
36   - self.expects(:render).with(:file => 'blocks/communities', :locals => { :owner => profile, :suggestions => block.suggestions })
  36 + self.expects(:render).with(:file => 'blocks/communities_footer', :locals => { :owner => profile, :suggestions => block.suggestions })
37 37 instance_eval(&block.footer)
38 38 end
39 39  
... ... @@ -42,7 +42,7 @@ class CommunitiesBlockTest < ActiveSupport::TestCase
42 42 block = CommunitiesBlock.new
43 43 block.expects(:owner).returns(env).at_least_once
44 44  
45   - self.expects(:render).with(:file => 'blocks/communities', :locals => { :owner => env, :suggestions => block.suggestions })
  45 + self.expects(:render).with(:file => 'blocks/communities_footer', :locals => { :owner => env, :suggestions => block.suggestions })
46 46 instance_eval(&block.footer)
47 47 end
48 48  
... ...