Commit 68e1c77a6a39de7e660c014afc8f62d4016202e0
1 parent
7c4f4efd
Exists in
staging
and in
32 other branches
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 | require_relative "../test_helper" | 1 | require_relative "../test_helper" |
2 | +require 'boxes_helper' | ||
2 | 3 | ||
3 | class SlideshowBlockTest < ActiveSupport::TestCase | 4 | class SlideshowBlockTest < ActiveSupport::TestCase |
5 | + include BoxesHelper | ||
4 | 6 | ||
5 | def setup | 7 | def setup |
6 | @profile = fast_create(Profile) | 8 | @profile = fast_create(Profile) |
@@ -30,7 +32,7 @@ class SlideshowBlockTest < ActiveSupport::TestCase | @@ -30,7 +32,7 @@ class SlideshowBlockTest < ActiveSupport::TestCase | ||
30 | 32 | ||
31 | block = SlideshowBlock.new | 33 | block = SlideshowBlock.new |
32 | block.stubs(:gallery).returns(gallery) | 34 | block.stubs(:gallery).returns(gallery) |
33 | - block.content | 35 | + render_block_content(block) |
34 | end | 36 | end |
35 | 37 | ||
36 | should 'list in random order' do | 38 | should 'list in random order' do |
@@ -42,7 +44,7 @@ class SlideshowBlockTest < ActiveSupport::TestCase | @@ -42,7 +44,7 @@ class SlideshowBlockTest < ActiveSupport::TestCase | ||
42 | block.stubs(:block_images).returns(images) | 44 | block.stubs(:block_images).returns(images) |
43 | images.expects(:shuffle).once.returns(shuffled) | 45 | images.expects(:shuffle).once.returns(shuffled) |
44 | 46 | ||
45 | - block.content | 47 | + render_block_content(block) |
46 | end | 48 | end |
47 | 49 | ||
48 | should 'not shuffle by default' do | 50 | should 'not shuffle by default' do |