Commit d4df15613e5525a01acddc12ac0c7e9c12de5ff9

Authored by Antonio Terceiro
1 parent 614b0d24

ProfileControllerTest: fix pagination test

This does not seem to be a problem with packages from Rubygems, but with
Debian packages we need this workaround for the test to work.
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/functional/profile_controller_test.rb
@@ -873,11 +873,11 @@ class ProfileControllerTest < ActionController::TestCase @@ -873,11 +873,11 @@ class ProfileControllerTest < ActionController::TestCase
873 assert_template 'index' 873 assert_template 'index'
874 end 874 end
875 875
876 - should 'the network activity be paginated on communities' do 876 + should 'paginate the network activity listing on communities' do
877 community = fast_create(Community) 877 community = fast_create(Community)
878 40.times{ fast_create(ActionTrackerNotification, :profile_id => community.id, :action_tracker_id => fast_create(ActionTracker::Record, :user_id => profile.id)) } 878 40.times{ fast_create(ActionTrackerNotification, :profile_id => community.id, :action_tracker_id => fast_create(ActionTracker::Record, :user_id => profile.id)) }
879 get :index, :profile => community.identifier 879 get :index, :profile => community.identifier
880 - assert_equal 15, assigns(:network_activities).size 880 + assert_equal 15, assigns(:network_activities).to_a.size
881 end 881 end
882 882
883 should 'the self activity not crashes with user not logged in' do 883 should 'the self activity not crashes with user not logged in' do