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

@ -9,11 +9,6 @@ RSpec.describe Follow, type: :model do
describe 'validations' do
subject { Follow.new(account: alice, target_account: bob, rate_limit: true) }
it 'has a valid fabricator' do
follow = Fabricate.build(:follow)
expect(follow).to be_valid
end
it 'is invalid without an account' do
follow = Fabricate.build(:follow, account: nil)
follow.valid?