the longin test for ruby on rails