From 32a837358f51ca34bf3e6ea189b6e929ea899f82 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 23 Jul 2013 07:28:01 -0300 Subject: [PATCH] rails3: fix ProfileSearchBlock unit tests --- app/models/block.rb | 2 ++ app/models/profile_search_block.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/block.rb b/app/models/block.rb index bce8427..2803d54 100644 --- a/app/models/block.rb +++ b/app/models/block.rb @@ -1,5 +1,7 @@ class Block < ActiveRecord::Base + attr_accessible :title + # to be able to generate HTML include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper diff --git a/app/models/profile_search_block.rb b/app/models/profile_search_block.rb index 7e8eba3..6c2909c 100644 --- a/app/models/profile_search_block.rb +++ b/app/models/profile_search_block.rb @@ -6,7 +6,7 @@ class ProfileSearchBlock < Block def content(args={}) title = self.title - lambda do + lambda do |_| render :file => 'blocks/profile_search', :locals => { :title => title } end end -- libgit2 0.21.2