Ruby test task write ClosedStruct