require 'spec_helper' describe IFCModels::IFCConversionJob, type: :job do let(:model) { FactoryBot.build :ifc_model } subject { described_class.perform_now(model) } it 'calls the conversion service' do expect(::IFCModels::ViewConverterService) .to receive_message_chain(:new, :call) .and_return ServiceResult.new success: true expect { subject }.not_to raise_error end end