OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/modules/bim/spec/workers/ifc_conversion_job_spec.rb

15 lines
404 B

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
5 years ago
end