diff options
author | Rémy Coutable <remy@rymai.me> | 2016-01-14 10:04:48 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-01-14 10:04:48 +0100 |
commit | e918493f55eb27cdb779f0bc2d8cbbace8b69aa9 (patch) | |
tree | 53aafcde836645b6d96326f696b665182fac6b3c /spec/models/note_spec.rb | |
parent | 33ea09bdf9c05c60438f03ac1fe94b52615cd05e (diff) | |
download | gitlab-ce-e918493f55eb27cdb779f0bc2d8cbbace8b69aa9.tar.gz |
Fix specs and rubocop warningsfix/private-references
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 65e6a7df3b4..9182b42661d 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -186,12 +186,12 @@ describe Note, models: true do let(:ext_proj) { create(:project, :public) } let(:ext_issue) { create(:issue, project: ext_proj) } - let(:note) { + let(:note) do create :note, noteable: ext_issue, project: ext_proj, note: "mentioned in issue #{private_issue.to_reference(ext_proj)}", system: true - } + end it "returns true" do expect(note.cross_reference_not_visible_for?(ext_issue.author)).to be_truthy |