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