test script by ruby on rails