diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/support/shared_examples/lib/gitlab/search_results_sorted_shared_examples.rb | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/support/shared_examples/lib/gitlab/search_results_sorted_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/lib/gitlab/search_results_sorted_shared_examples.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/lib/gitlab/search_results_sorted_shared_examples.rb b/spec/support/shared_examples/lib/gitlab/search_results_sorted_shared_examples.rb index 765279a78fe..07d01d5c50e 100644 --- a/spec/support/shared_examples/lib/gitlab/search_results_sorted_shared_examples.rb +++ b/spec/support/shared_examples/lib/gitlab/search_results_sorted_shared_examples.rb @@ -2,7 +2,7 @@ RSpec.shared_examples 'search results sorted' do context 'sort: newest' do - let(:sort) { 'newest' } + let(:sort) { 'created_desc' } it 'sorts results by created_at' do expect(results.objects(scope).map(&:id)).to eq([new_result.id, old_result.id, very_old_result.id]) @@ -10,7 +10,7 @@ RSpec.shared_examples 'search results sorted' do end context 'sort: oldest' do - let(:sort) { 'oldest' } + let(:sort) { 'created_asc' } it 'sorts results by created_at' do expect(results.objects(scope).map(&:id)).to eq([very_old_result.id, old_result.id, new_result.id]) |