Bandwidth Test?

Does anyone know of a bandwidth test that has been written using rails?
Our video streaming application needs the client to be on a broadband
connection and have at least 250 - 300 Kb download, and I’d like to test
that using rails.