mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-14 03:01:39 -05:00
Update users_spec.rb
This commit is contained in:
parent
afc6f98c64
commit
e71d7b0a92
1 changed files with 3 additions and 1 deletions
|
|
@ -25,7 +25,9 @@ RSpec.describe '/settings/users', type: :request do
|
|||
end
|
||||
|
||||
context 'when user is an admin' do
|
||||
before { sign_in create(:user, :admin) }
|
||||
let!(:admin) { create(:user, :admin) }
|
||||
|
||||
before { sign_in admin }
|
||||
|
||||
describe 'POST /create' do
|
||||
context 'with valid parameters' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue