908771e172
Fix #3242
17 lines
339 B
Ruby
17 lines
339 B
Ruby
FactoryBot.define do
|
|
factory :feedback do
|
|
rating { Feedback.ratings.fetch(:happy) }
|
|
|
|
trait :happy do
|
|
rating { Feedback.ratings.fetch(:happy) }
|
|
end
|
|
|
|
trait :neutral do
|
|
rating { Feedback.ratings.fetch(:neutral) }
|
|
end
|
|
|
|
trait :unhappy do
|
|
rating { Feedback.ratings.fetch(:unhappy) }
|
|
end
|
|
end
|
|
end
|