Refactor friendships controller and model
This commit is contained in:
parent
2b7a48029b
commit
be11f2075e
27 changed files with 317 additions and 338 deletions
6
test/factories/follows.rb
Normal file
6
test/factories/follows.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :follow do
|
||||
follower :factory => :user
|
||||
following :factory => :user
|
||||
end
|
||||
end
|
|
@ -1,6 +0,0 @@
|
|||
FactoryBot.define do
|
||||
factory :friendship do
|
||||
befriender :factory => :user
|
||||
befriendee :factory => :user
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue