diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-07 12:38:21 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-07 14:53:02 +0100 |
commit | 9b0c360bd5f8dd0538ecb5ffcb39da9a618b0231 (patch) | |
tree | 31e71ad653b2ca0e5509f4330c77126006c51793 /spec | |
parent | 5dc708e11c912acebf739851df4e9e2e11188d02 (diff) | |
download | gitlab-ce-9b0c360bd5f8dd0538ecb5ffcb39da9a618b0231.tar.gz |
Fixed issue sorting specs for ID changes
These specs assumed data was still sorted by timestamp, instead of by
ID.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index a2fb3e4c75d..e844e681ebf 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -127,15 +127,15 @@ describe 'Issues', feature: true do it 'sorts by newest' do visit namespace_project_issues_path(project.namespace, project, sort: sort_value_recently_created) - expect(first_issue).to include('foo') - expect(last_issue).to include('baz') + expect(first_issue).to include('baz') + expect(last_issue).to include('foo') end it 'sorts by oldest' do visit namespace_project_issues_path(project.namespace, project, sort: sort_value_oldest_created) - expect(first_issue).to include('baz') - expect(last_issue).to include('foo') + expect(first_issue).to include('foo') + expect(last_issue).to include('baz') end it 'sorts by most recently updated' do @@ -190,8 +190,8 @@ describe 'Issues', feature: true do sort: sort_value_oldest_created, assignee_id: user2.id) - expect(first_issue).to include('bar') - expect(last_issue).to include('foo') + expect(first_issue).to include('foo') + expect(last_issue).to include('bar') expect(page).not_to have_content 'baz' end end |