mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54: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
|
|
@ -91,7 +91,7 @@ describe Admin::RolesController do
|
|||
user: { email: 'user1@osem.io' },
|
||||
id: 'organizer' }
|
||||
|
||||
expect(user1.roles).to eq [organizer_role, cfp_role]
|
||||
expect(user1.roles).to contain_exactly(cfp_role, organizer_role)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ describe Admin::RolesController do
|
|||
user: { email: 'user1@osem.io' },
|
||||
id: 'organizer' }
|
||||
|
||||
expect(user1.roles).to eq [organizer_role, cfp_role]
|
||||
expect(user1.roles).to contain_exactly(cfp_role, organizer_role)
|
||||
|
||||
post :toggle_user, params: { conference_id: conference.short_title,
|
||||
user: { email: 'user1@osem.io', state: 'false' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue