How long to test after spotting?

I'm sure I had spotting last week and not sure how long I need to wait before I test?