diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-04-26 11:11:58 +0200 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-29 15:03:00 -0400 |
commit | bf0b51d252e049404a49787c18e5c88071006e15 (patch) | |
tree | 80fd54ba2a0671100bbb72cc8bc76f9fb565b20e /spec/models/note_spec.rb | |
parent | 87c44b0e91959439014fb8c923f3febc039d1cd0 (diff) | |
download | gitlab-ce-bf0b51d252e049404a49787c18e5c88071006e15.tar.gz |
Update note factory to include noteable association
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 5d916f0e6a6..fe13c06b1e0 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -89,8 +89,8 @@ describe Note, models: true do end describe "#all_references" do - let!(:note1) { create(:note) } - let!(:note2) { create(:note) } + let!(:note1) { create(:note_on_issue) } + let!(:note2) { create(:note_on_issue) } it "reads the rendered note body from the cache" do expect(Banzai::Renderer).to receive(:render).with(note1.note, pipeline: :note, cache_key: [note1, "note"], project: note1.project) @@ -102,7 +102,7 @@ describe Note, models: true do end describe '.search' do - let(:note) { create(:note, note: 'WoW') } + let(:note) { create(:note_on_issue, note: 'WoW') } it 'returns notes with matching content' do expect(described_class.search(note.note)).to eq([note]) |