You test your application against a test database that's already been upgraded, you identify any issues and you fix them. Once the tests run clean, then you update the compatibility level on production.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability