summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-16 16:25:25 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-04-16 16:30:16 -0400
commitdee52393b5b76c5d30addbfe7ba43e718b67a371 (patch)
treef8dc6343ca0e95ef7882e2916b10b4059da4173d /spec/models/note_spec.rb
parent2dace3679fb9a086a015dcca213c6e563a08764e (diff)
downloadgitlab-ce-dee52393b5b76c5d30addbfe7ba43e718b67a371.tar.gz
Correct usage of `subject` in specs
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index a7bf5081d5b..e7e6717e775 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -629,8 +629,9 @@ describe Note do
end
it_behaves_like 'an editable mentionable' do
+ subject { create :note, noteable: issue, project: project }
+
let(:issue) { create :issue, project: project }
- let(:subject) { create :note, noteable: issue, project: project }
let(:backref_text) { issue.gfm_reference }
let(:set_mentionable_text) { ->(txt) { subject.note = txt } }
end