Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-04-25 21:10:20 +0300
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-05-10 13:03:13 +0300
commitdccf8a9fc8d4dde91942944f6b47387bfb13c380 (patch)
tree7574eea0adcc0cd46bf3d685fccec0d08c37b252 /spec/factories/award_emoji.rb
parent4eb16290e4e95c0a9bcf3d01ecc8060d91eec021 (diff)
Add tests on Awardables and Award Emoji
Diffstat (limited to 'spec/factories/award_emoji.rb')
-rw-r--r--spec/factories/award_emoji.rb11
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