testing ionic rails a rails API