Beat the last gym leader, and go by where you go to get into sunny shore city. Then you'll have to do stuff (I think) and the guy will come get you and you can pass.
PS. I know this takes a while, but I'm pretty sure this is how it goes. HTH! (not hi, hoped this helped!)