mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 05:04:03 +00:00
Decouple tests from unspecified data ordering
These tests have been passing with SQLite, but don't reflect guaranteed behavior and with PostgreSQL failed intermittently.
This commit is contained in:
parent
e6f3aa559e
commit
a7006a4edd
5 changed files with 26 additions and 27 deletions
|
|
@ -21,8 +21,7 @@ describe Api::V1::ConferencesController do
|
|||
end
|
||||
|
||||
it 'returns correct conferences' do
|
||||
expect(@json[0]['short_title']).to eq('conf_one')
|
||||
expect(@json[1]['short_title']).to eq('conf_two')
|
||||
expect(@json.map { |c| c['short_title'] }).to contain_exactly('conf_one', 'conf_two')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue