code test in RoR