From d4df15613e5525a01acddc12ac0c7e9c12de5ff9 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 1 Dec 2015 18:27:37 -0200 Subject: [PATCH] ProfileControllerTest: fix pagination test --- test/functional/profile_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index 472b5d1..dde263f 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -873,11 +873,11 @@ class ProfileControllerTest < ActionController::TestCase assert_template 'index' end - should 'the network activity be paginated on communities' do + should 'paginate the network activity listing on communities' do community = fast_create(Community) 40.times{ fast_create(ActionTrackerNotification, :profile_id => community.id, :action_tracker_id => fast_create(ActionTracker::Record, :user_id => profile.id)) } get :index, :profile => community.identifier - assert_equal 15, assigns(:network_activities).size + assert_equal 15, assigns(:network_activities).to_a.size end should 'the self activity not crashes with user not logged in' do -- libgit2 0.21.2