From 20a82cdb7c78c8c3857a5fcddbf2cf01d7694133 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Thu, 25 Feb 2016 11:03:15 -0300 Subject: [PATCH] Fix FeaturedProductsBlock unit tests --- test/unit/featured_products_block_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/featured_products_block_test.rb b/test/unit/featured_products_block_test.rb index 6f02ee7..99422be 100644 --- a/test/unit/featured_products_block_test.rb +++ b/test/unit/featured_products_block_test.rb @@ -1,6 +1,8 @@ require_relative "../test_helper" +require 'boxes_helper' class FeaturedProductsBlockTest < ActiveSupport::TestCase + include BoxesHelper def setup @profile = fast_create(Profile) @@ -108,7 +110,7 @@ class FeaturedProductsBlockTest < ActiveSupport::TestCase block = FeaturedProductsBlock.new self.expects(:render).with(:file => 'blocks/featured_products', :locals => { :block => block}) - instance_eval(& block.content) + render_block_content(block) end should "return just highlighted products with image for selection" do -- libgit2 0.21.2