Commit 62bb3807 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'jh-replace-create-with-build-stubbed' into 'master'

Replace create with build_stubbed in user validations

See merge request gitlab-org/gitlab!35901
parents bf44eb60 f82db1d4
......@@ -214,7 +214,7 @@ RSpec.describe User do
describe 'validations' do
describe 'password' do
let!(:user) { create(:user) }
let!(:user) { build_stubbed(:user) }
before do
allow(Devise).to receive(:password_length).and_return(8..128)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment