add more tests to models
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
Fabricator(:account) do
|
||||
username "alice"
|
||||
username { Faker::Internet.user_name(nil, %w(_)) }
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
Fabricator(:block) do
|
||||
|
||||
account
|
||||
target_account { Fabricate(:account) }
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
Fabricator(:follow) do
|
||||
|
||||
account
|
||||
target_account { Fabricate(:account) }
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
Fabricator(:follow_request) do
|
||||
|
||||
account
|
||||
target_account { Fabricate(:account) }
|
||||
end
|
||||
|
4
spec/fabricators/mention_fabricator.rb
Normal file
4
spec/fabricators/mention_fabricator.rb
Normal file
@ -0,0 +1,4 @@
|
||||
Fabricator(:mention) do
|
||||
account
|
||||
status
|
||||
end
|
@ -1,6 +1,6 @@
|
||||
Fabricator(:user) do
|
||||
account
|
||||
email "alice@example.com"
|
||||
email { Faker::Internet.email }
|
||||
password "123456789"
|
||||
confirmed_at { Time.now }
|
||||
end
|
||||
|
Reference in New Issue
Block a user