demarches-normaliennes/spec/factories/feedback.rb
2019-01-10 16:17:00 +01:00

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