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
414 B

require 'spec_helper'
describe Bim::IfcModels::IfcConversionJob, type: :job do
let(:model) { FactoryBot.build :ifc_model }
subject { described_class.perform_now(model) }
it 'calls the conversion service' do
5 years ago
expect(::Bim::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