0
0
Fork 0

Fabricator specs (#23925)

This commit is contained in:
Matt Jankowski 2023-03-04 11:12:09 -05:00 committed by GitHub
parent c40d5e5a8f
commit cd99fa8ceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 27 additions and 183 deletions

View file

@ -4,11 +4,6 @@ require 'rails_helper'
RSpec.describe Mention, type: :model do
describe 'validations' do
it 'has a valid fabricator' do
mention = Fabricate.build(:mention)
expect(mention).to be_valid
end
it 'is invalid without an account' do
mention = Fabricate.build(:mention, account: nil)
mention.valid?