blob: 0ac946a1232d4eaa021e10e219003381cfa872dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require 'spec_helper'
describe CreateNoteDiffFileWorker do
describe '#perform' do
let(:diff_note) { create(:diff_note_on_merge_request) }
it 'creates diff file' do
diff_note.note_diff_file.destroy!
expect_any_instance_of(DiffNote).to receive(:create_diff_file)
.and_call_original
described_class.new.perform(diff_note.id)
end
end
end
|