set amount 0 if params[:amount] is nil
fix spec to receive amount 0 or nil