Commit f82db1d4 authored by John Hope's avatar John Hope

Replace create with build_stubbed in user validations

parent 230adfd7
......@@ -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