diff options
author | Han Loong Liauw <hanloongliauw@gmail.com> | 2015-10-17 09:30:43 +1100 |
---|---|---|
committer | Han Loong Liauw <hanloongliauw@gmail.com> | 2015-10-17 09:30:43 +1100 |
commit | 1565a95da17ba8425486839d0712a9141d66b98f (patch) | |
tree | d2a9d3afaf90b12c1a71fa8c82ac168becd5c75b /spec/models/note_spec.rb | |
parent | 45e11d95f27584f699392fad8f54c1807e562d7f (diff) | |
parent | c856a7a5934fba13598be09507c2090888f57a39 (diff) | |
download | gitlab-ce-1565a95da17ba8425486839d0712a9141d66b98f.tar.gz |
Merge branch 'master' into add-dates-snippets-show
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 3a0b194ba1e..75564839dcf 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -192,10 +192,9 @@ describe Note do end it_behaves_like 'an editable mentionable' do - subject { create :note, noteable: issue, project: project } + subject { create :note, noteable: issue, project: issue.project } - let(:project) { create(:project) } - let(:issue) { create :issue, project: project } + let(:issue) { create :issue } let(:backref_text) { issue.gfm_reference } let(:set_mentionable_text) { ->(txt) { subject.note = txt } } end |