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