Commit d4df15613e5525a01acddc12ac0c7e9c12de5ff9
1 parent
614b0d24
Exists in
master
and in
19 other branches
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 | 873 | assert_template 'index' |
874 | 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 | 877 | community = fast_create(Community) |
878 | 878 | 40.times{ fast_create(ActionTrackerNotification, :profile_id => community.id, :action_tracker_id => fast_create(ActionTracker::Record, :user_id => profile.id)) } |
879 | 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 | 881 | end |
882 | 882 | |
883 | 883 | should 'the self activity not crashes with user not logged in' do | ... | ... |