diff options
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 973a0b9d592..1cde9e04951 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -148,8 +148,8 @@ describe Note, models: true do let!(:note2) { create(:note_on_issue) } it "reads the rendered note body from the cache" do - expect(Banzai::Renderer).to receive(:cache_collection_render) - .with([{ + expect(Banzai::Renderer).to receive(:cache_collection_render). + with([{ text: note1.note, context: { skip_project_check: false, @@ -160,8 +160,8 @@ describe Note, models: true do } }]).and_call_original - expect(Banzai::Renderer).to receive(:cache_collection_render) - .with([{ + expect(Banzai::Renderer).to receive(:cache_collection_render). + with([{ text: note2.note, context: { skip_project_check: false, @@ -361,8 +361,8 @@ describe Note, models: true do let(:note) { build(:note_on_project_snippet) } before do - expect(Banzai::Renderer).to receive(:cacheless_render_field) - .with(note, :note, { skip_project_check: false }).and_return(html) + expect(Banzai::Renderer).to receive(:cacheless_render_field). + with(note, :note, { skip_project_check: false }).and_return(html) note.save end @@ -376,8 +376,8 @@ describe Note, models: true do let(:note) { build(:note_on_personal_snippet) } before do - expect(Banzai::Renderer).to receive(:cacheless_render_field) - .with(note, :note, { skip_project_check: true }).and_return(html) + expect(Banzai::Renderer).to receive(:cacheless_render_field). + with(note, :note, { skip_project_check: true }).and_return(html) note.save end |