From 68e1c77a6a39de7e660c014afc8f62d4016202e0 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Thu, 25 Feb 2016 10:59:28 -0300 Subject: [PATCH] Fix SlideshowBlock unit tests --- test/unit/slideshow_block_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/slideshow_block_test.rb b/test/unit/slideshow_block_test.rb index b34ea77..da31bb5 100644 --- a/test/unit/slideshow_block_test.rb +++ b/test/unit/slideshow_block_test.rb @@ -1,6 +1,8 @@ require_relative "../test_helper" +require 'boxes_helper' class SlideshowBlockTest < ActiveSupport::TestCase + include BoxesHelper def setup @profile = fast_create(Profile) @@ -30,7 +32,7 @@ class SlideshowBlockTest < ActiveSupport::TestCase block = SlideshowBlock.new block.stubs(:gallery).returns(gallery) - block.content + render_block_content(block) end should 'list in random order' do @@ -42,7 +44,7 @@ class SlideshowBlockTest < ActiveSupport::TestCase block.stubs(:block_images).returns(images) images.expects(:shuffle).once.returns(shuffled) - block.content + render_block_content(block) end should 'not shuffle by default' do -- libgit2 0.21.2