Commit 32a837358f51ca34bf3e6ea189b6e929ea899f82

Authored by Antonio Terceiro
1 parent 0d5cbfb2

rails3: fix ProfileSearchBlock unit tests

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