diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-21 22:26:53 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-21 22:26:53 +0000 |
commit | a4510729a67ce528ab00d27225c2140eebd80ed8 (patch) | |
tree | 1c74d46d877e2bb4ac76934ecb74406ae9079f2f /spec | |
parent | 0e2b64498330cc7b2e698a266c027b9bd96f456c (diff) | |
parent | 5e37d02d0ebd64249186577e306b7c502953a2e1 (diff) | |
download | gitlab-ce-a4510729a67ce528ab00d27225c2140eebd80ed8.tar.gz |
Merge branch '15465-fix-sort-by-due-date' into 'master'
Remove the `.distinct` when finding issues
See merge request !3858
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 90476ab369b..b1d49875ac4 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -178,6 +178,19 @@ describe 'Issues', feature: true do expect(first_issue).to include('foo') end + + context 'with a filter on labels' do + let(:label) { create(:label, project: project) } + before { create(:label_link, label: label, target: foo) } + + it 'sorts by least recently due date by excluding nil due dates' do + bar.update(due_date: nil) + + visit namespace_project_issues_path(project.namespace, project, label_names: [label.name], sort: sort_value_due_date_later) + + expect(first_issue).to include('foo') + end + end end describe 'filtering by due date' do |