add more tests to models
This commit is contained in:
parent
6fd865c000
commit
81c76fe375
22 changed files with 252 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue