Fix specs and update rails