ãã FGã¯defineã®ä»®å¼æ°å¨ããç¡é§ (blueprintã§æ¹å) FGã¯instanceããã©ããã«ç®¡çããã FGã®sequence(next)ã¯ã¤ã±ã¦ã FGã¯ARåæ Machinistã¯å®ç¾©ãã¤ã±ã¦ãããååãããµã¤(make_unsaved) Machinistã¯ã¡ã½ããåãè¡çªããã(makeã¯ã¢ã«ã³) Machinistã¯instanceãã¯ã©ã¹æ¯ã«åé¡ã§ããããShamã¬ãã«ã¾ã§è½ã¡ãã¨ãã©ããã«ãªãçæè½ã¡æ Daddyã®ä½¿ããªãã¯ç°å¸¸ FGã®ç¶æ¿ã¯ã©ãããã®ï¼(-> :parent) FG.blueprint 㯠:parent ãç解ãã¦ãããªã 試è¡é¯èª¤ Factory.sequence :login do |i| "login#{i}" end Factory.define(:user) do |user| user.login {Factory.next
{{#tags}}- {{label}}
{{/tags}}