require'spec_helper'describeProjectDestroyWorkerdolet(:project){create(:project)}let(:path){project.repository.path_to_repo}subject{ProjectDestroyWorker.new}describe"#perform"doit"deletes the project"dosubject.perform(project.id,project.owner,{})expect(Project.all).not_toinclude(project)expect(Dir.exist?(path)).tobe_falseyendit"deletes the project but skips repo deletion"dosubject.perform(project.id,project.owner,{"skip_repo"=>true})expect(Project.all).not_toinclude(project)expect(Dir.exist?(path)).tobe_truthyendendend