My solution for ror test tasks