require'spec_helper'describeGroupDestroyWorkerdolet(:group){create(:group)}let(:user){create(:admin)}let!(:project){create(:project,namespace: group)}subject{GroupDestroyWorker.new}describe"#perform"doit"deletes the project"dosubject.perform(group.id,user.id)expect(Group.all).not_toinclude(group)expect(Project.all).not_toinclude(project)expect(Dir.exist?(project.path)).tobe_falseyendendend