Wayne Rooney's Derby County put their off-the-pitch problems to one side as they beat La Liga side Real Betis 1-0 in a pre-season friendly.