Fixed issue sorting specs for ID changes

These specs assumed data was still sorted by timestamp, instead of by
ID.
This commit is contained in:
Yorick Peterse 2016-01-07 12:38:21 +01:00
parent 5dc708e11c
commit 9b0c360bd5
1 changed files with 6 additions and 6 deletions

View File

@ -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