mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix the test failures
This commit is contained in:
parent
50e876dd6f
commit
e85ecede4c
29 changed files with 232 additions and 232 deletions
|
|
@ -25,12 +25,12 @@ describe Admin::UsersController do
|
|||
user_to_confirm = create(:user, email: 'unconfirmed_user@osem.io', confirmed_at: nil)
|
||||
patch :toggle_confirmation, params: { id: user_to_confirm.id, user: { to_confirm: 'true' } }
|
||||
user_to_confirm.reload
|
||||
expect(user_to_confirm.confirmed?).to eq true
|
||||
expect(user_to_confirm.confirmed?).to be true
|
||||
end
|
||||
it 'undo confirmation of user' do
|
||||
patch :toggle_confirmation, params: { id: user.id, user: { to_confirm: 'false' } }
|
||||
user.reload
|
||||
expect(user.confirmed?).to eq false
|
||||
expect(user.confirmed?).to be false
|
||||
end
|
||||
end
|
||||
describe 'PATCH #update' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue