models: require belong_to associations on feedback
This commit is contained in:
parent
79fcf5e814
commit
91619b16e8
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
FactoryBot.define do
|
||||
factory :feedback do
|
||||
rating { Feedback.ratings.fetch(:happy) }
|
||||
association :user
|
||||
|
||||
trait :happy do
|
||||
rating { Feedback.ratings.fetch(:happy) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue