require'spec_helper'describeRepositoryImportWorkerdolet(:project){create(:project)}subject{described_class.new}describe'#perform'doit'imports a project'doexpect_any_instance_of(Projects::ImportService).toreceive(:execute).and_return({status: :ok})expect_any_instance_of(Repository).toreceive(:expire_emptiness_caches)expect_any_instance_of(Project).toreceive(:import_finish)subject.perform(project.id)endendend