require'spec_helper'describe'Projects tab on a user profile',:feature,:jsdolet(:user){create(:user)}let!(:project){create(:empty_project,namespace: user.namespace)}let!(:project2){create(:empty_project,namespace: user.namespace)}beforedoallow(Project).toreceive(:default_per_page).and_return(1)login_as(user)visituser_path(user)page.within('.user-profile-nav')doclick_link('Personal projects')endwait_for_ajaxendit'paginates results'doexpect(page).tohave_content(project2.name)click_link('Next')expect(page).tohave_content(project.name)endend