Fix spec. Order search by created_at because draft post have no
published date.

Clean some hash syntax