fixed extra 'end' in specs