Commit 1c11a51e507cc2258e39782dedd54164b62b90c0

Authored by Weblate
2 parents 7cac2d24 2ebc7cc4

Merge remote-tracking branch 'origin/master'

plugins/community_track/test/unit/community_track_plugin/track_list_block_test.rb
@@ -31,7 +31,7 @@ class TrackListBlockTest < ActiveSupport::TestCase @@ -31,7 +31,7 @@ class TrackListBlockTest < ActiveSupport::TestCase
31 31
32 should 'list of articles be limited by block configuration' do 32 should 'list of articles be limited by block configuration' do
33 (@block.limit + 1).times { |i| create_track("track#{i}", profile) } 33 (@block.limit + 1).times { |i| create_track("track#{i}", profile) }
34 - assert_equal @block.limit, @block.tracks.size 34 + assert_equal @block.limit, @block.tracks.to_a.size
35 end 35 end
36 36
37 should 'return more link if has more tracks to show' do 37 should 'return more link if has more tracks to show' do