diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-09-06 23:05:18 -0700 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-09-06 23:05:18 -0700 |
| commit | 4f8a4aa44c90f84480f5cb541d2d79ce11c7f960 (patch) | |
| tree | e296f60eb12701fc99ad4a38370d9db11015252f /spec/models | |
| parent | 7c0a1068bf337cd169d11cca764af6b0ceb986b2 (diff) | |
| parent | 2faa4bba40909778c1732894faf42a0f00e87cc4 (diff) | |
| download | gitlab-ce-4f8a4aa44c90f84480f5cb541d2d79ce11c7f960.tar.gz | |
Merge pull request #1384 from tsigo/emoji
Emoji!
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/note_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index ffaf442d9a4..dddfd34c499 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -35,6 +35,16 @@ describe Note do note = Factory(:note, note: "-1 for this") note.should_not be_upvote end + + it "recognizes a +1 emoji as a vote" do + note = build(:note, note: ":+1: for this") + note.should be_upvote + end + + it "recognizes a neutral emoji note" do + note = build(:note, note: "I would :+1: this, but I don't want to") + note.should_not be_upvote + end end let(:project) { create(:project) } |
