Rails code - test