diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-06-03 21:40:59 -0500 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-06-03 21:40:59 -0500 |
commit | 44affff387e1a4406f3e030894caf73e8d41a064 (patch) | |
tree | 28e0a37aceba82a3da16e62e47024ef95e1dab05 /spec/features/dashboard | |
parent | 39340e428e3546d3749498ce10b19ae6cda0e646 (diff) | |
download | gitlab-ce-44affff387e1a4406f3e030894caf73e8d41a064.tar.gz |
Use last_activity_at attr when showing the update date in project listing32869-project-s-last-updated-time-not-accurately-reflected-in-projects-dashboard
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r-- | spec/features/dashboard/projects_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/dashboard/projects_spec.rb b/spec/features/dashboard/projects_spec.rb index fa3435ab719..3568954a548 100644 --- a/spec/features/dashboard/projects_spec.rb +++ b/spec/features/dashboard/projects_spec.rb @@ -15,6 +15,15 @@ RSpec.describe 'Dashboard Projects', feature: true do expect(page).to have_content('awesome stuff') end + it 'shows the last_activity_at attribute as the update date' do + now = Time.now + project.update_column(:last_activity_at, now) + + visit dashboard_projects_path + + expect(page).to have_xpath("//time[@datetime='#{now.getutc.iso8601}']") + end + context 'when on Starred projects tab' do it 'shows only starred projects' do user.toggle_star(project2) |