Commit 32a837358f51ca34bf3e6ea189b6e929ea899f82

Authored by Antonio Terceiro
1 parent 0d5cbfb2

rails3: fix ProfileSearchBlock unit tests

app/models/block.rb
1 1 class Block < ActiveRecord::Base
2 2  
  3 + attr_accessible :title
  4 +
3 5 # to be able to generate HTML
4 6 include ActionView::Helpers::UrlHelper
5 7 include ActionView::Helpers::TagHelper
... ...
app/models/profile_search_block.rb
... ... @@ -6,7 +6,7 @@ class ProfileSearchBlock &lt; Block
6 6  
7 7 def content(args={})
8 8 title = self.title
9   - lambda do
  9 + lambda do |_|
10 10 render :file => 'blocks/profile_search', :locals => { :title => title }
11 11 end
12 12 end
... ...