diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-04-25 20:10:20 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-05-10 12:03:13 +0200 |
commit | dccf8a9fc8d4dde91942944f6b47387bfb13c380 (patch) | |
tree | 7574eea0adcc0cd46bf3d685fccec0d08c37b252 /spec/factories | |
parent | 4eb16290e4e95c0a9bcf3d01ecc8060d91eec021 (diff) | |
download | gitlab-ce-dccf8a9fc8d4dde91942944f6b47387bfb13c380.tar.gz |
Add tests on Awardables and Award Emoji
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/award_emoji.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/factories/award_emoji.rb b/spec/factories/award_emoji.rb index a1173834b29..b09f8b0bc74 100644 --- a/spec/factories/award_emoji.rb +++ b/spec/factories/award_emoji.rb @@ -3,5 +3,16 @@ FactoryGirl.define do name "thumbsup" user awardable factory: :issue + + trait :thumbs_up + trait :upvote + + trait :thumbs_down do + name "thumbsdown" + end + + trait :downvote do + name "thumbsdown" + end end end |