2018-03-17 18:26:18 +05:30
|
|
|
FactoryBot.define do
|
2016-06-16 23:09:34 +05:30
|
|
|
factory :award_emoji do
|
|
|
|
name "thumbsup"
|
|
|
|
user
|
|
|
|
awardable factory: :issue
|
|
|
|
|
2018-05-09 12:01:36 +05:30
|
|
|
after(:create) do |award, evaluator|
|
|
|
|
award.awardable.project.add_guest(evaluator.user)
|
|
|
|
end
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
trait :upvote
|
|
|
|
trait :downvote do
|
|
|
|
name "thumbsdown"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|