diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-12-19 13:03:44 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-12-19 13:03:44 +0300 |
commit | ffef28ccd6d37ade2c3ee3ca46679749f9cf09aa (patch) | |
tree | a2e80a4edeeb8420ccc7387a575c2bae25e5cce4 /spec | |
parent | 1f7c072e08913dda0534bc5534a50f389567433f (diff) | |
parent | 685c0f237d5b2a736e996e9f07bccffbaa205938 (diff) |
Merge branch '54146-fix-calendar-query' into 'master'
Fix calendar feed when sorted by priority
Closes #54146
See merge request gitlab-org/gitlab-ce!23870
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/ics/project_issues_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/ics/project_issues_spec.rb b/spec/features/ics/project_issues_spec.rb index 2ca3d52a5be..54143595e6b 100644 --- a/spec/features/ics/project_issues_spec.rb +++ b/spec/features/ics/project_issues_spec.rb @@ -72,5 +72,14 @@ describe 'Project Issues Calendar Feed' do expect(body).to have_text('TRANSP:TRANSPARENT') end end + + context 'sorted by priority' do + it 'renders calendar feed' do + visit project_issues_path(project, :ics, sort: 'priority', feed_token: user.feed_token) + + expect(response_headers['Content-Type']).to have_content('text/calendar') + expect(body).to have_text('BEGIN:VCALENDAR') + end + end end end |