mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Always validate presence of user's primary_email.
This commit is contained in:
@@ -5,6 +5,7 @@ describe User do
|
||||
|
||||
context 'validations' do
|
||||
it { is_expected.to validate_presence_of :username }
|
||||
it { is_expected.to validate_presence_of :primary_email }
|
||||
|
||||
describe 'emails' do
|
||||
let(:user) { Fabricate.build(:user) }
|
||||
|
||||
Reference in New Issue
Block a user