debian-mirror-gitlab/spec/workers/create_note_diff_file_worker_spec.rb
2020-08-09 17:44:08 +05:30

19 lines
417 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.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