Testing for client side validation with rails