From beb5c42b3f205246db6df86879641b78448e5234 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Sat, 27 Feb 2016 15:02:43 -0300 Subject: [PATCH] Fix ProfileImageBlock unit tests --- test/unit/profile_image_block_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/profile_image_block_test.rb b/test/unit/profile_image_block_test.rb index 787065c..338031d 100644 --- a/test/unit/profile_image_block_test.rb +++ b/test/unit/profile_image_block_test.rb @@ -1,6 +1,8 @@ require_relative "../test_helper" +require 'boxes_helper' class ProfileImageBlockTest < ActiveSupport::TestCase + include BoxesHelper should 'provide description' do assert_not_equal Block.description, ProfileImageBlock.description @@ -9,8 +11,8 @@ class ProfileImageBlockTest < ActiveSupport::TestCase should 'display profile image' do block = ProfileImageBlock.new - self.expects(:render).with(:file => 'blocks/profile_image', :locals => { :block => block, :show_name => false}) - instance_eval(& block.content) + self.expects(:render).with(:file => 'blocks/profile_image', :locals => { :block => block }) + render_block_content(block) end should 'be editable' do -- libgit2 0.21.2