Skip to content

Commit 0b7b4fb

Browse files
maebealeclaude
andcommitted
Force user creation before DeviseMailer stub in model spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4674bfe commit 0b7b4fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/models/user_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
let(:user) { create(:user, confirmed_at: nil) }
379379

380380
before do
381-
# Stub after factory creation so we don't count the on-create confirmation
381+
user # force creation before stubbing so on-create confirmation isn't counted
382382
allow(DeviseMailer).to receive(:confirmation_instructions).and_return(mock_mail)
383383
end
384384

0 commit comments

Comments
 (0)