Commit 1c11a51e507cc2258e39782dedd54164b62b90c0
Exists in
staging
and in
37 other branches
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/community_track/test/unit/community_track_plugin/track_list_block_test.rb
... | ... | @@ -31,7 +31,7 @@ class TrackListBlockTest < ActiveSupport::TestCase |
31 | 31 | |
32 | 32 | should 'list of articles be limited by block configuration' do |
33 | 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 | 35 | end |
36 | 36 | |
37 | 37 | should 'return more link if has more tracks to show' do | ... | ... |