mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Stop validating factories in specs
We do validate all of them in a before(:suite) already.
This commit is contained in:
parent
86b2bd426a
commit
0104671e01
20 changed files with 0 additions and 104 deletions
|
|
@ -38,15 +38,6 @@ describe Admin::UsersController do
|
|||
before :each do
|
||||
patch :update, params: { id: user.id, user: { name: 'new name', email: 'new_email@osem.io' } }
|
||||
end
|
||||
|
||||
it 'locates requested @user' do
|
||||
expect(build(:user, id: user.id)).to eq(user)
|
||||
end
|
||||
it 'changes @users attributes' do
|
||||
expect(build(
|
||||
:user, email: 'email_new@osem.io', id: user.id).email)
|
||||
.to eq('email_new@osem.io')
|
||||
end
|
||||
it 'redirects to the updated user' do
|
||||
expect(response).to redirect_to admin_users_path
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue