Fabricator specs (#23925)
This commit is contained in:
parent
c40d5e5a8f
commit
cd99fa8ceb
37 changed files with 27 additions and 183 deletions
|
@ -704,12 +704,6 @@ RSpec.describe Account, type: :model do
|
|||
end
|
||||
|
||||
describe 'validations' do
|
||||
it 'has a valid fabricator' do
|
||||
account = Fabricate.build(:account)
|
||||
account.valid?
|
||||
expect(account).to be_valid
|
||||
end
|
||||
|
||||
it 'is invalid without a username' do
|
||||
account = Fabricate.build(:account, username: nil)
|
||||
account.valid?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue