update account_spec

rebase/4.0.0rc2
Samy KACIMI 2017-04-05 00:37:23 +02:00
parent 7762467b47
commit 46c0e8b0e7
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ RSpec.describe Account, type: :model do
expect(account).to model_have_error_on_field(:username) expect(account).to model_have_error_on_field(:username)
end end
it 'is invalid is the username already exists' do it 'is invalid if the username already exists' do
account_1 = Fabricate(:account, username: 'the_doctor') account_1 = Fabricate(:account, username: 'the_doctor')
account_2 = Fabricate.build(:account, username: 'the_doctor') account_2 = Fabricate.build(:account, username: 'the_doctor')
account_2.valid? account_2.valid?