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-02-19 12:10:55 +0300
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-02-19 12:10:55 +0300
commitaba1aa49a986230d697106117b5e9b0efa97467c (patch)
tree6c09516b48673f276ffe54eeaf995694690da59c /spec/models/note_spec.rb
parent11ed1cbbb7b777a4883af6ec5b79b958881fab67 (diff)
Improve #set_award! on the Note model
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index 7a293490c51..e6da3724d33 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -212,7 +212,10 @@ describe Note, models: true do
it "is not an award emoji when comment is on a diff" do
note = create(:note, note: ":blowfish:", noteable: merge_request, line_code: "11d5d2e667e9da4f7f610f81d86c974b146b13bd_0_2")
- expect(note.reload.note).to eq(":blowfish:")
+ note = note.reload
+
+ expect(note.note).to eq(":blowfish:")
+ expect(note.is_award?).to be_falsy
end
end
end