diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-17 18:27:10 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-17 18:30:12 +0800 |
commit | 685c0f237d5b2a736e996e9f07bccffbaa205938 (patch) | |
tree | 4251d4194ccd4f072acff85720bbbcaee674ebe4 /spec/features/ics | |
parent | 8b4602041cf2c4a8738a4796d78720017249249f (diff) | |
download | gitlab-ce-685c0f237d5b2a736e996e9f07bccffbaa205938.tar.gz |
Fix calendar feed when sorted by priority
Diffstat (limited to 'spec/features/ics')
-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 |