Change admin budget investments list order by supports from less to more

Sorting by id is in descending order and by title ascending

Backported from AyuntamientoMadrid/consul
This commit is contained in:
María Checa
2018-04-10 18:58:58 +02:00
committed by Marko Lovic
parent 7053711269
commit 5dfefbbe2f
3 changed files with 15 additions and 13 deletions

View File

@@ -608,8 +608,8 @@ feature 'Admin budget investments' do
scenario 'Sort by ID' do
visit admin_budget_budget_investments_path(budget, sort_by: 'id')
expect('B First Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('C Third Investment')
expect('C Third Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('B First Investment')
end
scenario 'Sort by title' do
@@ -622,8 +622,8 @@ feature 'Admin budget investments' do
scenario 'Sort by supports' do
visit admin_budget_budget_investments_path(budget, sort_by: 'supports')
expect('C Third Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('B First Investment')
expect('B First Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('C Third Investment')
end
end