Commit 68e1c77a6a39de7e660c014afc8f62d4016202e0

Authored by Rafael Reggiani Manzo
1 parent 7c4f4efd

Fix SlideshowBlock unit tests

After removing the content method it is now necessary to use
BoxesHelper#render_block_content.
Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
test/unit/slideshow_block_test.rb
1 1 require_relative "../test_helper"
  2 +require 'boxes_helper'
2 3  
3 4 class SlideshowBlockTest < ActiveSupport::TestCase
  5 + include BoxesHelper
4 6  
5 7 def setup
6 8 @profile = fast_create(Profile)
... ... @@ -30,7 +32,7 @@ class SlideshowBlockTest &lt; ActiveSupport::TestCase
30 32  
31 33 block = SlideshowBlock.new
32 34 block.stubs(:gallery).returns(gallery)
33   - block.content
  35 + render_block_content(block)
34 36 end
35 37  
36 38 should 'list in random order' do
... ... @@ -42,7 +44,7 @@ class SlideshowBlockTest &lt; ActiveSupport::TestCase
42 44 block.stubs(:block_images).returns(images)
43 45 images.expects(:shuffle).once.returns(shuffled)
44 46  
45   - block.content
  47 + render_block_content(block)
46 48 end
47 49  
48 50 should 'not shuffle by default' do
... ...